Vidyalelo
R Programming · Q20

Data Manipulation with dplyr

Programming · R Programming · question 20

Q20

In dplyr, how do you calculate the total count of observations in each group using summarize()?

A.
summarize(count = n())
Answer
B.
summarize(total_count = count())
C.
summarize(total = n())
D.
calculate(count = n())

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board