Re: [R] Use of contains in S4 classes

2005-08-19 Thread Ross Boylan
On Thu, 2005-08-18 at 17:30 -0500, Paul Roebuck wrote: 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

[R] Use of contains in S4 classes

2005-08-18 Thread Ross Boylan
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

Re: [R] Use of contains in S4 classes

2005-08-18 Thread Paul Roebuck
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,

Re: [R] Use of contains in S4 classes

2005-08-18 Thread Ross Boylan
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), contains=A) Are these the same? If not, how do they differ? What about setClass(B,