ys_select: Select a subset of items from a yspec object

View source: R/ys-tidy.R

ys_selectR Documentation

Select a subset of items from a yspec object

Description

Select a subset of items from a yspec object

Usage

ys_select(.x, ...)

Arguments

.x

A yspec object.

...

Unquoted columns to select.

Details

If no columns are selected, then an empty yspec object is returned.

Value

A yspec object that may be length zero if no columns were selected.

Examples


spec <- ys_help$spec()

ys_select(spec, WT, AGE, ALB)

ys_select(spec, Wt = WT, AGE)
 
length(ys_select(spec))
 

metrumresearchgroup/yspec documentation built on Aug. 21, 2023, 1:24 a.m.