ys_get_unit | R Documentation |
Forms unit for a column (ycol
method) or columns (yspec
method). Use
purrr::map or purrr::map_chr to simply extract the unit field.
ys_get_unit(x, parens = FALSE, default = "", ...)
x |
ycol or yspec object |
parens |
if |
default |
passed to unit |
... |
passed to unit methods |
ys_get_short, ys_get_label, ys_get_short_unit
spec <- ys_help$spec()
ys_get_unit(spec)
ys_get_unit(spec$WT)
## Not run:
purrr:::map(spec,"unit")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.