Which of the following finds row sums for each level of a grouping variable?
A. rowSums (x, na.rm = FALSE, dims = 1)
B. colMeans(x, na.rm = FALSE, dims = 1)
C. rowMeans(x, na.rm = FALSE, dims = 1)
D. rowsum(x, group, reorder = TRUE, ...)
Answer: Option C

Join The Discussion