make_yes_no | R Documentation |
Convert a "Yes-No", "True-False" or "Checkboxes (Multiple
Answers)" question in REDCap to a factor holding "Yes" or
"No or Unknown". Technically "yes" or "checked" (ignoring case), 1 or
TRUE responses are converted to "Yes" and all other values to
"No or Unknown". Also see make_yes_no_unknown()
.
make_yes_no(x)
x |
x variable to be converted to hold "Yes" or "No or Unknown" |
a factor with "Yes" or "No or Unknown"
make_yes_no(c(0, 1, NA))
make_yes_no(c("unchecked", "Checked", NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.