update_field_names {REDCapTidieR} | R Documentation |
Update metadata field names for checkbox handling
Description
Takes a db_metadata
object and:
replaces checkbox field rows with a set of rows, one for each checkbox option
appends a
field_name_updated
field to the end for checkbox variable handlingupdates
field_label
for any new checkbox rows to include the specific option in "field_label: option label" formatstrips html and field embedding logic from
field_label
Usage
update_field_names(db_metadata)
Arguments
db_metadata |
The REDCap metadata output defined by
|
Details
Assumes db_metadata
:
has non-zero number of rows
contains
field_name
andfield_label
columns
Value
Column db_metadata
with field_name_updated
appended
and field_label
updated for new rows corresponding to checkbox options
[Package REDCapTidieR version 1.2.3 Index]