Skip to contents

Executes the table specification against the provided data, producing a formatted output data frame.

Usage

tplyr_build(spec, data, pop_data = NULL, metadata = FALSE, ...)

Arguments

spec

A tplyr_spec object (or path to a JSON/YAML spec file)

data

A data.frame to process

pop_data

Optional population data.frame (overrides spec pop_data)

metadata

If TRUE, attach cell-level metadata enabling traceability back to source data rows via tplyr_meta_result() and tplyr_meta_subset().

...

Additional named arguments to override spec-level parameters

Value

A data.frame with rowlabel, res, and ord columns