powered by
Averages an array along a set of dimensions given by the argument dims.
MeanListDim(var, dims, narm = TRUE)
Input array.
List of dimensions to average along.
Ignore NA (TRUE) values or not (FALSE).
The averaged array, with the dimensions specified in dims removed.
dims
# NOT RUN { a <- array(rnorm(24), dim = c(2, 3, 4)) print(a) print(Mean1Dim(a, 2)) print(MeanListDim(a, c(2, 3))) # }
Run the code above in your browser using DataLab