Learn R Programming

infinitefactor (version 1.0)

amean: Average over the third index of an array

Description

Convenience function to compute matrix sample means when samples are stored as a 3rd order array. Sampling index should be the third mode.

Usage

amean(ar)

Arguments

ar

a 3rd order array

Value

matrix of dimension dim(ar)[-3]

See Also

lmean

Examples

Run this code
# NOT RUN {
ar = array(rnorm(10000), dim = c(10, 10, 100))
amean(ar)
# }

Run the code above in your browser using DataLab