Extract or Replace Slot in S-PLUS Object
DESCRIPTION:
Extracts the named slot from a S-PLUS object
or replaces the contents of the slot with the specified replacement value.
USAGE:
object @ name
object @ name <- value
ARGUMENTS:
- object
-
a S-PLUS object containing slots.
- name
-
a S-PLUS expression evaluating to the name of a slot for the class of
object
.
- value
-
a S-PLUS object that can be coerced to the class of the slot.
VALUE:
The contents of the specified slot.
SEE ALSO:
,
,
.
EXAMPLES:
djia@title
djia.copy <- djia
djia.copy@title <- "Copy of Dow Jones Industrial Average"