Skip to content

S4 classes, some help with the basics

4 messages · Duncan Murdoch, Martin Morgan, Mike Williamson

#
On 08/08/2011 8:04 PM, Mike Williamson wrote:
See ?slot.
summary(slot(myPCA, i))

Duncan Murdoch
#
On 08/08/2011 05:04 PM, Mike Williamson wrote:
usually one doesn't want to directly access S4 slots, but instead use 
accessors defined by the author, e.g., completeObs(myPCA). The idea is 
that the implementation of the class might deviate from the interface. 
Methods might be documented on the class help page

   class(myPCA)
   class?pcaRes

or discoverable

   showMethods(class="pcaRes", where=getNamespace("pcaMethods"))

Martin