[R] Two ways to inherit in S4?

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Wed 08 Jun 2005 - 10:22:17 EST

I'm puzzled that it seems possible to specify inheritance via the "representation" and "contains" arguments to setClass. The examples that I've seen all seem to use contains only.

Is there some subtle distinction between these two approaches? Originally I thought one had to repeat the same information in both places, but that seems not to be the case.

Sorry about all these questions.

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 08 10:25:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST