[R] Use of contains in S4 classes
Paul Roebuck
roebuck at odin.mdacc.tmc.edu
Fri Aug 19 00:30:11 CEST 2005
On Thu, 18 Aug 2005, Ross Boylan wrote:
> setClass("B", representation=representation("B", extra="numeric))
> setClass("B", representation=representation(extra="numeric"),
> contains="B")
> Are these the same? If not, how do they differ?
>
> What about
> setClass("B", representation=representation("B", extra="numeric"),
> contains="B")
> ?
>
> As far as I can tell, the Green Book doesn't talk about a contains
> argument to setClass.
"S4 - Composition and Inheritance" by Witold Eryk Wolski
(a.k.a. Extending.pdf) might be what you're looking for.
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
More information about the R-help
mailing list