Extract or replace the contents of a slot in a object with a formal (S4) class structure.
object@name
object@name <- value
| Parameter | Description |
|---|---|
object |
An object from a formally defined (S4) class. |
name |
The character-string name of the slot, quoted or not. Must be the name of a slot in the definition of the class of object. |
value |
A replacement value for the slot, which must be from a class compatible with the class defined for this slot in the definition of the class of object. |