Skip to content
Prev 22134 / 63424 Next

standardization of slot access

I think slot() is only necessary in the case where you have

a <- "myslot"
slot(object, a)

which is equivalent to

object at myslot

It seems unlikely that you would use slot() during interactive use, but perhaps 
more so in programming.  Even still, I rather infrequently find the need for 
slot() because classes have defined slot names---if you're going to access a 
slot, just use the name that you gave it in the class definition since that 
doesn't change from instance to instance.

-roger
Sebastian P. Luque wrote: