mean.list | 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 |
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
var2
mean(hudsonia)
# or
x <- matrix(unlist(hudsonia), ncol=length(hudsonia) )
matrix2(rowMeans(x), colnames(hudsonia[[1]]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.