| as_lvec | R Documentation |
Converts a primitive R-vector to lvec
as_lvec(x)
x |
the object to convert. This can be a vector of type
|
Returns an lvec of the same type as x. When x is
already and lvec, x is returned. For character vectors the
maximum length of the lvec is set to the maximum length found
in x.
# convert a character vector to lvec x <- as_lvec(letters) lget(x, 1:26)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.