Examveda

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

A. summarize(count = n())

B. summarize(total_count = count())

C. summarize(total = n())

D. calculate(count = n())

Answer: Option A


This Question Belongs to R Programming >> Data Manipulation With Dplyr

Join The Discussion

Related Questions on Data Manipulation with dplyr