powered by
Calculates mean matrix from a list of matrices
# S3 method for list mean(x, ...)
The mean matrix
A list of two or more matrices
Additional arguments passed to rowMeans
rowMeans
Chris Stubben
Returns the mean matrix from a list of matrices using a combination of unlist and rowMeans. See example for details.
unlist
var2
mean(hudsonia) # or x <- matrix(unlist(hudsonia), ncol=length(hudsonia) ) matrix2(rowMeans(x), colnames(hudsonia[[1]]))
Run the code above in your browser using DataLab