ys_mutate | R Documentation |
Mutate yspec item data
ys_mutate(x, ...)
x |
A yspec object. |
... |
Named lists of column data to update; only specific items can be mutated at this time; see details. |
Items that can be mutated: - 'short' - 'unit' - 'label'
A 'yspec' object
[update_short()]
spec <- ys_help$spec()
xpec <- yspec:::ys_mutate(spec, TIME = list(unit = "d"), TAD = list(unit = 'w'))
spec$TIME
spec$TAD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.