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
vector is about the same as a 1-D matrix. Why
use length(vec) and not nrow(vec) or something
-Original Message-
From: R-devel On Behalf Of Gabor Grothendieck
Sent: Sunday, September 8, 2024 8:37 AM
To: Marc Schwartz
Cc: r-devel@r-project.org
Subject: Re: [Rd] Inconsistency between row
The fact that it is consistent with the documentation is not the
point. The point is that the design itself is inconsistent.
On Sun, Sep 8, 2024 at 8:27 AM Marc Schwartz wrote:
>
> Hi Gabor,
>
> In strictly reading the help files for both nrow() and row(), the 'x'
> argument in the former case
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 "a matrix-like object, that is one with a two-dimensional
dim.".
Thus, I would expect row() to fail on a >= 3