Re: [R] Attributes or list programming "efficiency"

2008-05-15 Thread Bert Gunter
Thankyou Brian (and others). Very useful information(as usual). -- Bert -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 10:29 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Attributes or list programming "efficiency

Re: [R] Attributes or list programming "efficiency"

2008-05-14 Thread Prof Brian Ripley
On Wed, 14 May 2008, Bert Gunter wrote: R-Fellow Travellers: Asked from the perspective of a software development amateur ... Suppose one wishes to create data structures that have both data and metadata -- e.g. a data.frame and details about where, when, and by whom the data were gathered (sp

Re: [R] Attributes or list programming "efficiency"

2008-05-14 Thread Don MacQueen
At 2:26 PM -0400 5/14/08, Gabor Grothendieck wrote: The key difference is inheritance. Objects consisting of data frames with attributes, including a class attribute such as c("myclass", "data.frame), can inherit data frame methods but a list with a data frame component will require entirely new

Re: [R] Attributes or list programming "efficiency"

2008-05-14 Thread Gabor Grothendieck
The key difference is inheritance. Objects consisting of data frames with attributes, including a class attribute such as c("myclass", "data.frame), can inherit data frame methods but a list with a data frame component will require entirely new methods to be constructed for everything. On Wed,

[R] Attributes or list programming "efficiency"

2008-05-14 Thread Bert Gunter
R-Fellow Travellers: Asked from the perspective of a software development amateur ... Suppose one wishes to create data structures that have both data and metadata -- e.g. a data.frame and details about where, when, and by whom the data were gathered (specifics not important here). 1. Is there