From ggrothend|eck @end|ng |rom gm@||@com  Sun Sep  8 13:30:36 2024
From: ggrothend|eck @end|ng |rom gm@||@com (Gabor Grothendieck)
Date: Sun, 8 Sep 2024 07:30:36 -0400
Subject: [Rd] Inconsistency between row and nrow
Message-ID: <CAP01uRnVmJ1ETMq93gE7=peHTNZWNLPE49ah8zd9a2A8Sh4SXw@mail.gmail.com>

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:
  slice.index(aa, 1)

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



[Rd] Inconsistency between row and nrow
Gabor Grothendieck