powered by
ctCollapse Easily collapse an array margin using a specified function.
ctCollapse(inarray, collapsemargin, collapsefunc, plyr = TRUE, ...)
Input array of more than one dimension.
Integers denoting which margins to collapse.
function to use over the collapsing margin.
Whether to use plyr.
additional parameters to pass to collapsefunc.
# NOT RUN { testarray <- array(rnorm(900,2,1),dim=c(100,3,3)) ctCollapse(testarray,1,mean) # }
Run the code above in your browser using DataLab