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
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
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
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
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