Skip to contents

Subsets a spec data frame to the rows of one dataset.

Usage

spec_variables(spec, dataset)

Arguments

spec

Spec data.frame compatible with [read_spec_df()].

dataset

Dataset name to subset to (e.g. `"ADSL"`).

Value

The subset spec data frame; errors when no rows match.

Details

Extract one dataset's spec rows

Examples

rows <- spec_variables(mock_spec_adsl(), "ADSL")
nrow(rows)
#> [1] 10