Generate Results using Table and Column Metadata
Usage
generate_results(
table_metadata,
column_metadata_file = NULL,
column_metadata = NULL,
env = parent.frame(),
tbltype = NULL,
add_count = FALSE
)Arguments
- table_metadata
dataframe containing table metadata (see ?table_metadata for details)
- column_metadata_file
An excel file with the data for column_metadata. The file is read in with
readxl::read_excel(). Should not be used withcolumn_metadataargument. Results in a dataframe containing the column metadata that is passed to tlgsetup (seetlgsetup()for details). If a column_metadata dataframe is passed in too, this is ignored.- column_metadata
A dataframe containing the column metadata. This will be used in place of
column_metadata_file.- env
environment to find dataframe specified in the table metadata (defaults to parent environment)
- tbltype
If used, this will be used to subset the
column_metadatabased on thetbltypecolumn.- add_count
Passed to
bind_table()should counts be added fortablebyvars?
