map_checkbox_choice | R Documentation |
A checkbox choice is a field that can be either Checked or Unchecked. Transform this entry to the corresponding label text.
map_checkbox_choice(.x, .choices)
.choices |
In REDCap, a checkbox is represented as a series of fields with the choice index appended. That is, it is of the form
checkbox___1
The data dictionary (metadata) provides a lookup of what 1 is labeled. The content of the field is NA, Checked or Unchecked.
This function will take a column of data from a tibble assumed to be in checkbox form. It requires a tibble of choices, to map the Checked value to a corresponding Label value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.