Select a subset of columns from a yspec object

ys_select(.x, ...)

Arguments

.x

a yspec object

...

unquoted columns to select

Value

A yspec object

Examples

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.yml
ys_select(spec, Wt = WT, AGE)
#> name c d unit short source #> Wt - - kg weight ysdb_internal.yml #> AGE - - years age ysdb_internal.yml