[R] closest match in R to c-like struct?
murdoch.duncan at gmail.com
Sat May 1 16:51:36 CEST 2010
On 01/05/2010 10:46 AM, Giovanni Azua wrote:
> 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.
More information about the R-help