From groemping at bht-berlin.de  Fri Jul 24 16:55:11 2009
From: groemping at bht-berlin.de (groemping at bht-berlin.de)
Date: Fri, 24 Jul 2009 16:55:11 +0200 (CEST)
Subject: [Rd] Misleading sentence in documentation of data.frame (PR#13850)
Message-ID: <20090724145511.28CDA282EF4F@mail.pubhealth.ku.dk>

Full_Name: Ulrike Groemping
Version: 2.9.0
OS: Windows
Submission from: (NULL) (84.190.173.190)


The documentation for data.frame contains the sentence "A data frame is a list
of variables of the same length with unique row names, given class
"data.frame"." This of course does describe the standard use of data frames, but
other versions are possible (e.g. df <- swiss; df$proof <- as.matrix(swiss);
ncol(df); df; length(df$proof)), which is important to know at least for package
developers and should be documented (it is documented with the extractor methods
for data.frame, but I don't think that this is sufficient).

Regards, Ulrike



[Rd] Misleading sentence in documentation of data.frame (PR#13850)
groemping at bht-berlin.de