[R] learning S4

Christophe Genolini cgenolin at u-paris10.fr
Wed Feb 13 09:38:32 CET 2008


Robin Hankin a écrit :
> Christophe
>
> you might find the Brobdingnag package on CRAN helpful here.
>
Yep, I read it and I find it very usefull. A question anyway:

Is there a way to change a slot without using the <- ?

Instead of
 > new("obj")
 > obj at slotA <- 3

I would like to have
 > new("obj")
 > setSlotA(obj,3)

In your vignette, 'Section 8 : Get and Set methods', you define 4 Gets, 
but no Set...

Christophe



More information about the R-help mailing list