checkbox_names {REDCapDM}R Documentation

Change checkboxes names into the name of their options

Description

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

Usage

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').


[Package REDCapDM version 0.9.9 Index]