ys_recode | R Documentation |
Use a yspec
object to convert a vector of column names to the short
name with the unit optionally appended.
ys_recode(col, spec, ..., unit = FALSE)
col |
A character vector of names in |
spec |
A |
... |
Passed to |
unit |
Logical indicating if the unit should be appended to the short name. |
spec <- ys_help$spec()
x <- c("WT", "BAR", "SCR", "TIME", "FOO")
ys_recode(x, spec)
ys_recode(x, ys_select(spec, -TIME), unit = TRUE, title_case = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.