Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-08 Thread Hervé Pagès
Hi Martin, On 02/07/2012 08:32 AM, Martin Maechler wrote: Martin Maechler on Mon, 6 Feb 2012 15:35:36 +0100 writes: >> On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler >>wrote: >> > The help has >> > >> >> Description: >> > >> >> 'nrow' a

Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-07 Thread Martin Maechler
> Martin Maechler > on Mon, 6 Feb 2012 15:35:36 +0100 writes: >> On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler >> wrote: >> > The help has >> > >> >> Description: >> > >> >>   'nrow' and 'ncol' return the number of rows or columns present in 'x'. >

Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-06 Thread Martin Maechler
> On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler > wrote: > > The help has > > > >> Description: > > > >>   'nrow' and 'ncol' return the number of rows or columns present in 'x'. > >>   'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. > > > > and > > > >>   x: a vector, array

Re: [Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-04 Thread Hadley Wickham
On Sat, Feb 4, 2012 at 10:38 AM, Martin Maechler wrote: > The help has > >> Description: > >>   'nrow' and 'ncol' return the number of rows or columns present in 'x'. >>   'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. > > and > >>   x: a vector, array or data frame > > I'm pr

[Rd] RFC: Proposal to make NROW() and NCOL() slightly more general

2012-02-04 Thread Martin Maechler
The help has > Description: > 'nrow' and 'ncol' return the number of rows or columns present in 'x'. > 'NCOL' and 'NROW' do the same treating a vector as 1-column matrix. and > x: a vector, array or data frame I'm proposing to extend these two convenience functions to also work ``corre