Calculates the mean for each row (column) in a matrix
Calculates the mean for each row (column) in a matrix.
rowMeans2(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), ...) colMeans2(x, rows = NULL, cols = NULL, na.rm = FALSE, dim. = dim(x), ...)
The implementation of rowMeans2()
and colMeans2()
is
optimized for both speed and memory.
Henrik Bengtsson
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.