Re: [R] Use of contains in S4 classes

From: Ross Boylan <>
Date: Fri 19 Aug 2005 - 09:01:09 EST

Oops, the second class should have been A in the examples. Corrected version:

setClass("B", representation=representation("A", extra="numeric)) setClass("B", representation=representation(extra="numeric"),

Are these the same? If not, how do they differ?

What about
setClass("B", representation=representation("A", extra="numeric"),


As far as I can tell, the Green Book doesn't talk about a contains argument to setClass.

Ross Boylan                                      wk:  (415) 502-4031
530 Parnassus Avenue (Library) rm 115-4
Dept of Epidemiology and Biostatistics           fax: (415) 476-9856
University of California, San Francisco
San Francisco, CA 94143-0840                     hm:  (415) 550-1062

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Fri Aug 19 09:12:52 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:32:17 EST