arrayMean: Truncated normal distribution

Description Usage Arguments Value Examples

View source: R/arrayMeans.R

Description

This function calculates means across an array's third dimension, then its second dimension.

Usage

1

Arguments

y

A numeric array.

Value

A numeric vector representing the mean of means with length equal to ncol(y).

Examples

1
2
3
4
5
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)

TESA-workshops/TESAsamSim documentation built on Feb. 6, 2021, 12:25 a.m.