Re: [Rd] Suggestion: Adding quick rowMin and rowMax functions to base package

2011-02-13 Thread TakeoKatsuki
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

[Rd] Suggestion: Adding quick rowMin and rowMax functions to base package

2010-03-30 Thread Sebastian Kranz
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

Re: [Rd] Suggestion: Adding quick rowMin and rowMax functions to base package

2010-03-30 Thread Henrik Bengtsson
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,