Examveda

In dplyr, how do you calculate the mean of a numeric variable named score for each group using summarize()?

A. mean(score)

B. calculate_mean(score)

C. avg(score)

D. summarize(mean_score = mean(score))

Answer: Option D


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

Join The Discussion

Related Questions on Data Manipulation with dplyr