Rename spec columns

ys_rename(.x, ...)

Arguments

.x

a yspec object

...

tidy rename specification; use new_name = old_name to rename

Value

A yspec object with renamed columns

See also

Examples

spec <- ys_help$spec() ans <- ys_rename(spec, TIME = TAFD, RENAL = RF) tail(ans)
#> name c d unit short source #> 20 HT - - cm height ysdb_internal.yml #> 21 CP - + . Child-Pugh score look.yml #> 22 TIME - - hours time after first dose . #> 23 TAD - - hours time after dose . #> 24 LDOS - - mg last dose amount . #> 25 MDV - - . MDV ysdb_internal.yml #> 26 BLQ - + . below limit of quantification . #> 27 PHASE - - . study phase indicator . #> 28 STUDY - + . study number . #> 29 RENAL + + . renal function stage .