Re: [Rd] Inconsistency between row and nrow

2024-09-08 Thread avi.e.gross
ndieck ; r-devel@r-project.org Subject: Re: [Rd] Inconsistency between row and nrow Hi Gabor, In strictly reading the help files for both nrow() and row(), the 'x' argument in the former case is "a vector, array, data frame, or NULL.", whereas in the latter case it is &quo

Re: [Rd] Inconsistency between row and nrow

2024-09-08 Thread avi.e.gross
Marc Schwartz > > > -Original Message- > From: R-devel <mailto:r-devel-boun...@r-project.org>> on behalf of Gabor Grothendieck > mailto:ggrothendi...@gmail.com>> > Date: Sunday, September 8, 2024 at 7:31 AM > To: "r-devel@r-project.org <mailto:r-dev

Re: [Rd] Inconsistency between row and nrow

2024-09-08 Thread Gabor Grothendieck
z > > > -Original Message- > From: R-devel <mailto:r-devel-boun...@r-project.org>> on behalf of Gabor Grothendieck > mailto:ggrothendi...@gmail.com>> > Date: Sunday, September 8, 2024 at 7:31 AM > To: "r-devel@r-project.org <mailto:r-devel@r-proj

Re: [Rd] Inconsistency between row and nrow

2024-09-08 Thread Marc Schwartz via R-devel
riginal Message- From: R-devel mailto:r-devel-boun...@r-project.org>> on behalf of Gabor Grothendieck mailto:ggrothendi...@gmail.com>> Date: Sunday, September 8, 2024 at 7:31 AM To: "r-devel@r-project.org <mailto:r-devel@r-project.org>" mailto:r-devel@r-project.or

[Rd] Inconsistency between row and nrow

2024-09-08 Thread Gabor Grothendieck
In the following nrow provides the expected result but row gives an error. I would have thought that they would both work or both fail. aa <- array(dim = 5:3) nrow(aa) ## [1] 5 row(aa) ## Error in row(aa) : a matrix-like object is required as argument to 'row' # this does work: s