Re: [Rd] [R] data.frame() size

From: Hin-Tak Leung <hin-tak.leung_at_cimr.cam.ac.uk>
Date: Mon 12 Dec 2005 - 12:45:11 GMT

Prof Brian Ripley wrote:
> Data frames have unique row names *by definition* (White Book p.57).

Yes - I happened to have the White Book on my desk (not mine...) - indeed, the first sentence on page 57 is (quote verbatim, the "never" is in italic in the book, which I have added the "*" before and after):

    If all else fails, the row names are just the row numbers. They     are *never* null and must be unique.

So patching data.frame.R is quite wrong. However, the rowname/colname overhead is definitely an issue for processing of large data sets, both for speed and amount of memory consumed. So it is probably best to extend the data.frame class and call it something else instead, for those who needs to go that route.

(What I am doing is already called a different name so it isn't affected by this argument).

Hin-Tak



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Dec 12 23:50:42 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:34 GMT