50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


REDCapTidieR (version 1.2.3)

update_data_col_names: Correctly label variables belonging to checkboxes with minus signs

Description

Using db_data and db_metadata, temporarily create a conversion column that reverts automatic REDCap behavior where database column names have "-"s converted to "_"s.

Usage

update_data_col_names(db_data, db_metadata)

Value

Updated db_data column names for checkboxes where "-"s were replaced by "_"s.

Arguments

db_data

The REDCap database output defined by REDCapR::redcap_read_oneshot()$data

db_metadata

The REDCap metadata output defined by REDCapR::redcap_metadata_read()$data

Details

This is an issue with checkbox fields since analysts should be able to verify checkbox variable suffices with their label counterparts.