Re: [R] S4 classes, some help with the basics

2011-08-09 Thread Mike Williamson
Thanks Duncan, Martin, You both provided exactly what I needed! Regards, Mike --- XKCD On Mon, Aug 8, 2011 at 5:21 PM, Duncan Murdoch wrote: > On 08/08/2011 8:04 PM, Mike Williamson wrote: > >> Hi All, >> >> I h

Re: [R] S4 classes, some help with the basics

2011-08-08 Thread Martin Morgan
On 08/08/2011 05:04 PM, Mike Williamson wrote: Hi All, I have tried to find an answer within documentation, but I cannot: o How can call a class "slot" without knowing the name a priori? E.g., let's say I use the "pcaMethods" library to create a "pcaRes" object. How can I call parts

Re: [R] S4 classes, some help with the basics

2011-08-08 Thread Duncan Murdoch
On 08/08/2011 8:04 PM, Mike Williamson wrote: Hi All, I have tried to find an answer within documentation, but I cannot: o How can call a class "slot" without knowing the name a priori? See ?slot. E.g., let's say I use the "pcaMethods" library to create a "pcaRes" object. How ca

[R] S4 classes, some help with the basics

2011-08-08 Thread Mike Williamson
Hi All, I have tried to find an answer within documentation, but I cannot: o How can call a class "slot" without knowing the name a priori? E.g., let's say I use the "pcaMethods" library to create a "pcaRes" object. How can I call parts of that object without using the specific names of