Mutate yspec item data

ys_mutate(x, ...)

Arguments

x

A yspec object.

...

Named lists of column data to update; only specific items can be mutated at this time; see details.

Value

A `yspec` object

Details

Items that can be mutated: - `short` - `unit` - `label`

See also

[update_short()]

Examples


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 .