update_dag_cols | R Documentation |
This helper function uses output from REDCapR::redcap_dag_read and applies the necessary
raw/label values to the redcap_data_access_group
column.
This is done because REDCapTidieR retrieves raw data by default, then merges
labels from the metadata. However, some columns like
redcap_data_access_group
are not in the metadata and so there is nothing by
default to reference.
update_dag_cols(data, dag_data, raw_or_label)
data |
the REDCap data |
dag_data |
a DAG dataset exported from REDCapR::redcap_dag_read |
raw_or_label |
A string (either 'raw', 'label', or 'haven') that specifies whether
to export the raw coded values or the labels for the options of categorical
fields. Default is 'label'. If 'haven' is supplied, categorical fields are converted
to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.