1

In dplyr, how do you calculate the sum and mean of a numeric variable named quantity for each group?

Correct Answer: summarize(total = sum(quantity), average = mean(quantity))

Make the most of this question

This page focuses on one R Programming MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

R Programming MCQs MCQ: In dplyr, how do you calculate the sum and mean of a numeric variable named quantity for each group? | Extra Education