as_base_r | R Documentation |
as_base_r
converts xlr objects, xlr_table, xlr_numeric, xlr_integer,
xlr_percent, and xlr_format to their base R type.
as_base_r(x)
x |
a xlr object |
as_base_r is a generic. It is a wrapper around vec_data but will convert every object to its base type.
The base type of the base R object.
library(xlr)
# We create a xlr objects
a <- xlr_numeric(1:100)
b <- xlr_percent(1:100/100)
tab <- xlr_table(mtcars,"a title","a footnote")
# now lets convert them back to their base types
as_base_r(a)
as_base_r(b)
as_base_r(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.