Re: [R] Class that wraps Data Frame

2012-09-03 Thread Ramiro Barrantes
] Sent: Friday, August 31, 2012 12:33 PM To: Bert Gunter Cc: David Winsemius; r-help@r-project.org; Ramiro Barrantes Subject: Re: [R] Class that wraps Data Frame I guess there are two issues with data.frame. It comes with more than you probably want to support (e.g., list and matrix- like subsetter

Re: [R] Class that wraps Data Frame

2012-08-31 Thread Martin Morgan
I guess there are two issues with data.frame. It comes with more than you probably want to support (e.g., list and matrix- like subsetter [, the user expecting to be able to independently modify any column). And it comes with less than you'd like (e.g., support for a 'column' of S4 objects). By

Re: [R] Class that wraps Data Frame

2012-08-31 Thread Bert Gunter
To add to what David said ... Of course, there are already S3 "getters" and "setters" methods for data frames ("[.data.frame" and "[<-.data.frame" )*. These could clearly be extended -- i.e. the data.frame class could be extended and appropriate S3 methods written. Whether you use S3 or S4 depends

Re: [R] Class that wraps Data Frame

2012-08-31 Thread David Winsemius
On Aug 31, 2012, at 5:57 AM, Ramiro Barrantes wrote: > Hello, > > I have again a "good practices"/programming theory question regarding > data.frames. > > One of the fundamental objects that I use is the data frame with a particular > set of columns that I would fill or get information from,

[R] Class that wraps Data Frame

2012-08-31 Thread Ramiro Barrantes
Hello, I have again a "good practices"/programming theory question regarding data.frames. One of the fundamental objects that I use is the data frame with a particular set of columns that I would fill or get information from, and an entire system would revolve around getting information from o