Matrix Statistics
Row and column summaries describe a numeric matrix.
Example
m <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2)
print(rowSums(m)); print(colSums(m))
print(round(cor(m), 1))
print(apply(m, 2, sd))Exercise
Column totals.
(m)Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.