Select a subset of columns from a yspec object
ys_select(.x, ...)
| .x | a yspec object |
|---|---|
| ... | unquoted columns to select |
A yspec object
spec <- ys_help$spec() ys_select(spec, WT, AGE, ALB)#> name c d unit short source #> WT - - kg weight ysdb_internal.yml #> AGE - - years age ysdb_internal.yml #> ALB - - g/dL albumin ysdb_internal.ymlys_select(spec, Wt = WT, AGE)#> name c d unit short source #> Wt - - kg weight ysdb_internal.yml #> AGE - - years age ysdb_internal.yml