To extract a single element of an RObject, use an underscore, which calls R's [[ operator. Note that R uses one-based indexing.
|
|
To extract multiple elements, use square brackets. This calls R's [ operator.
|
Parts of an R object may be replaced as well. This only affects the return value. The original object is not modified.
|
|
|