arrayMean | R Documentation |
This function calculates means across an array's third dimension, then its second dimension.
arrayMean(y)
y |
A numeric array. |
A numeric vector representing the mean of means with length equal to
ncol(y)
.
a <- matrix(rnorm(5 * 4, mean = 0, sd = 1), 5, 4)
b <- matrix(rnorm(5 * 4, mean = 1, sd = 1), 5, 4)
c <- matrix(rnorm(5 * 4, mean = 2, sd = 1), 5, 4)
y <- sapply(list(a, b, c), identity, simplify="array")
arrayMean(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.