Set and get attributes of the original R-vector stored in an lvec
1 2 3
and object of type
a character vector of length one giving the name of the attribute.
the new value of the attribute
The attributes of the
lvec can be set and obtained using the
when an lvec is converted to an R-vector using, for example,
as_rvec, the attributes of the resulting R-vector are set using
the result of
rattr. This can be used to store vectors such as
factors and dates (POSIXct) in
lvec objects, as these are basically
integer and numeric vectors with a number of additional attributes.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.