Mutate column 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. |
A `yspec` object
Items that can be mutated: - `short` - `unit` - `label`
[update_short()]
spec <- ys_help$spec() xpec <- yspec:::ys_mutate(spec, TIME = list(unit = "d"), TAD = list(unit = 'w')) spec$TIME#> name value #> col TIME #> type numeric #> short TIME #> unit hour #> range .spec$TAD#> name value #> col TAD #> type numeric #> short time after dose #> unit hours #> range .