Update metadata field names for checkbox handling
Takes a db_metadata
object and:
field_name_updated
field to the end for checkbox variable handlingfield_label
for any new checkbox rows to include the specific option in "field_label: option label" formatfield_label
update_field_names(db_metadata)
db_metadata
: The REDCap metadata output defined by REDCapR::redcap_metadata_read()$data
Column db_metadata
with field_name_updated
appended and field_label
updated for new rows corresponding to checkbox options
Assumes db_metadata
:
field_name
and field_label
columnsUseful links