Description Usage Arguments Details Examples
Create a reference to an arbitrary R object. See ref for more details. sref behaves
similar to ref, but does not have support for direct operations on the referenced object.
1 | sref(x)
|
x |
object to be referenced. |
sref is similar to ref; it accepts either an R object or an expression, then records
its location. ref objects prioritize convenience, while sref objects prioritize clarity and
safety. For example, `[` and `$` can be used on a ref object to access the elements
of the underlying object, while `[<-` and `$<-` can be used to overwrite elements within.
These do not work for sref objects. Furthermore, base mathematical functions such as `+`
and sqrt also will not automatically dereference before applying.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.