[Rd] Structure of the object: list() and attr()

Gorjanc Gregor Gregor.Gorjanc at bfro.uni-lj.si
Tue Aug 1 15:39:58 CEST 2006


Hello!

I am writing code where I define objects with new class. When I started,
it was a simple data.frame with attributes, but it is getting more evolved
and I would like to hear any pros and cons to go for list structure,
where one "slot" would be a data.frame, while other "slots" would take over
role of attributes.

Lep pozdrav / With regards,
    Gregor Gorjanc

----------------------------------------------------------------------
University of Ljubljana     PhD student
Biotechnical Faculty        URI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department     mail: gregor.gorjanc <at> bfro.uni-lj.si
Groblje 3                   tel: +386 (0)1 72 17 861
SI-1230 Domzale             fax: +386 (0)1 72 17 888
Slovenia, Europe
----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.



More information about the R-devel mailing list