Hi Henrik,
It would be nice if functions of the matrixStats package can handle array
data.
For example, rowSums() of the base package sums along the third axis of an
array by rowSums(x, dim=2).
Thanks.
Takeo
Henrik Bengtsson wrote:
See rowMins(), rowMaxs() and rowRanges() in matrixStats
Hi,
I wonder whether similarly to the very quick rowSums and colSums
functions in the base package, one could add quick functions that
calculate the min or max over rows / cols in a matrix. While
apply(x,1,min) works, I found out by profiling a program of mine that it
is rather slow for
See rowMins(), rowMaxs() and rowRanges() in matrixStats (on CRAN).
The matrixStats package was created for the purpose of providing such
row*/col*() methods. First the functionality is provided, then the
methods are optimized for speed and memory, e.g. vectorizing,
implementing in native code,