Google News
logo
R - Quiz(MCQ)
Which of the following finds row sums for each level of a grouping variable?
A)
rowMeans(x, na.rm = FALSE, dims = 1)
B)
rowsum(x, group, reorder = TRUE, …)
C)
rowSums (x, na.rm = FALSE, dims = 1)
D)
colMeans(x, na.rm = FALSE, dims = 1)

Correct Answer :   rowMeans(x, na.rm = FALSE, dims = 1)


Explanation : False value leads to unexpected result.

Advertisement