Re: [Rd] matrixStats: Extend to arrays too (Was: Re: Suggestion: Adding quick rowMin and rowMax functions to base package)

2011-02-16 Thread Tim Hesterberg
For consistency with rowSums colSums rowMeans etc., the names should be colMins colMaxs rowMins rowMaxs This is also consistent with S+. FYI, the rowSums naming convention was chosen to avoid conflict with rowsum (which computes column sums!). Tim Hesterberg A well-designed API

Re: [Rd] matrixStats: Extend to arrays too (Was: Re: Suggestion: Adding quick rowMin and rowMax functions to base package)

2011-02-16 Thread Hadley Wickham
On Wed, Feb 16, 2011 at 2:48 PM, Tim Hesterberg timhesterb...@gmail.com wrote: For consistency with rowSums colSums rowMeans etc., the names should be        colMins colMaxs        rowMins rowMaxs This is also consistent with S+. You mean rowMaxes, right? Or is the rule to add an s, not to

Re: [Rd] matrixStats: Extend to arrays too (Was: Re: Suggestion: Adding quick rowMin and rowMax functions to base package)

2011-02-16 Thread William Dunlap
-Original Message- From: r-devel-boun...@r-project.org [mailto:r-devel-boun...@r-project.org] On Behalf Of Hadley Wickham Sent: Wednesday, February 16, 2011 7:32 AM To: Tim Hesterberg Cc: Henrik Bengtsson; r-devel@r-project.org Subject: Re: [Rd] matrixStats: Extend to arrays too

Re: [Rd] matrixStats: Extend to arrays too (Was: Re: Suggestion: Adding quick rowMin and rowMax functions to base package)

2011-02-16 Thread Hadley Wickham
You mean rowMaxes, right?  Or is the rule to add an s, not to pluralise? In S+ we chose to just append the 's' instead of making everyone worry about the vagarities of English spelling and pluralization rules.  We also have 'groupAnys' and 'igroupAnys' (and should have {row,col}Anys, but we

Re: [Rd] matrixStats: Extend to arrays too (Was: Re: Suggestion: Adding quick rowMin and rowMax functions to base package)

2011-02-16 Thread William Dunlap
-Original Message- From: h.wick...@gmail.com [mailto:h.wick...@gmail.com] On Behalf Of Hadley Wickham Sent: Wednesday, February 16, 2011 9:21 AM To: William Dunlap Cc: Tim Hesterberg; Henrik Bengtsson; r-devel@r-project.org Subject: Re: [Rd] matrixStats: Extend to arrays too (Was:

[Rd] matrixStats: Extend to arrays too (Was: Re: Suggestion: Adding quick rowMin and rowMax functions to base package)

2011-02-15 Thread Henrik Bengtsson
Hi. On Sun, Feb 13, 2011 at 10:18 AM, TakeoKatsuki takeo.kats...@gmail.com wrote: 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). That is a