[R] closest match in R to c-like struct?

Giovanni Azua bravegag at gmail.com
Sat May 1 18:20:40 CEST 2010

On May 1, 2010, at 5:04 PM, (Ted Harding) wrote:
> Well, 'list' must be pretty close! The main difference would be
> that in C the structure type would be declared first, and then
> applied to create an object with that structure, whereas an R
> lists are created straight off. If you want to set up a generic
> list type for a certain purpose, you would wrap its definition
> in a function.
> Another difference is that R lacks the "pointer" type, so that
> R's "mylist$component" is the equivalent of C's "mylist.component";
> I don't think you can do the equivalent in R of C's "mylist->component"
> (though I'm likely to be wrong about that, and to be promptly corrected)!
> Hopingb this helps,
> Ted.

Thank you all for your help! this list is really great ... I mean the mailing list :)

Best regards,

More information about the R-help mailing list