strip_defined | R Documentation |
Converts a defined
vector to a base R numeric or character,
retaining metadata as passive attributes.
strip_defined(x)
x |
A |
A base R vector with attributes (label
, unit
, etc.) intact.
as_numeric()
, as_character()
gdp <- defined(c(3897L, 7365L), label = "GDP", unit = "million dollars")
strip_defined(gdp)
fruits <- defined(c("apple", "avocado", "kiwi"),
label = "Fruit", unit = "kg"
)
strip_defined(fruits)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.