slotOp {base} | R Documentation |
Extract tbe contents of a slot in a object with a formal (S4) class structure.
object@name
object |
An object from a formally defined (S4) class. |
name |
The character-string name of the slot. |
This operator supports the formal classes of package methods, and
is enabled only when methods is loaded (as per default). See
slot
for further details.
As from R 2.7.0 it is checked that object
is an S4 object (see
isS4
), and as from R 2.8.0 it is an error to attempt to
use @
on any other object. (There is an exception for name
.Data
for internal use only.)
If name
is not a slot name, an error is thrown.
The current contents of the slot.