mean.list {popbio} | R Documentation |
Calculates mean matrix from a list of matrices
## S3 method for class 'list': mean(x, ...)
x |
A list of two or more matrices |
... |
Additional arguments passed to rowMeans |
Returns the mean matrix from a list of matrices using a combination
of unlist
and rowMeans
. See example
for details.
The mean matrix
S3 method for the mean
of a list of
matrices.
Chris Stubben
data(hudsonia) mean(hudsonia) ## or x <- matrix(unlist(hudsonia), ncol=length(hudsonia) ) matrix(rowMeans(x), 6, 6)