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

Re: [Rd] Inconsistency between row and nrow

2024-09-08 Thread Gabor Grothendieck
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

Re: [Rd] Inconsistency between row and nrow

2024-09-08 Thread Marc Schwartz via R-devel
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