powered by
Calculates mean matrix from a list of matrices
# S3 method for list mean(x, …)
A list of two or more matrices
Additional arguments passed to rowMeans
rowMeans
The mean matrix
Returns the mean matrix from a list of matrices using a combination of unlist and rowMeans. See example for details.
unlist
var2
# NOT RUN { data(hudsonia) mean(hudsonia) ## or x <- matrix(unlist(hudsonia), ncol=length(hudsonia) ) matrix(rowMeans(x), 6, 6) # }
Run the code above in your browser using DataLab