meanFun {marray} | R Documentation |
Returns a function that calculate mean
.
meanFun(y = NULL, na.rm = TRUE)
y |
vector of class labels. Must consist of integers 1 and 2. |
na.rm |
If TRUE, the NA's are omit from the analysis. |
Returns a function with bindings for 'y' (class labels) that will calculate average across slides.
Yee Hwa (Jean) Yang
x <- rnorm(10) y <- meanFun() y(x)