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.
|
|
|
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/RInterface/doc.m2:755:0.