checkbox_names function

Change checkboxes names into the name of their options

Change checkboxes names into the name of their options

Function that returns both data and dictionary with the name of the checkboxes transformed by the name of their options.

checkbox_names(data, dic, labels, checkbox_labels = c("No", "Yes"))

Arguments

  • data: Dataset containing the REDCap data.
  • dic: Dataset containing the REDCap dictionary.
  • labels: Named character vector with the name of the variables in the data and the REDCap label in its name.
  • checkbox_labels: Character vector with the names that will have the two options of every checkbox variable. Default is c('No', 'Yes').