Re: [R] learning S4

From: Christophe Genolini <cgenolin_at_u-paris10.fr>
Date: Wed, 13 Feb 2008 09:38:32 +0100

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



R-help_at_r-project.org 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. Received on Wed 13 Feb 2008 - 08:43:47 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 13 Feb 2008 - 09:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive