On 01/05/2010 10:46 AM, Giovanni Azua wrote:
Hello,
What would be in R the closest match to a c-struct? e.g. data.frame requires
all elements to be of the same length ... or is there a way to circumvent this?
A list is completely free-form. An S4 object has a defined structure.
So if you just want to remove the restrictive structure of the
dataframe, use a list, but if you need the defined structure of a
struct, use S4.
Duncan Murdoch
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.