powered by
Simple function to generate REDCap choices from character vector
char2choice(data, char.split = "/", raw = NULL, .default = NA)
vector
splitting character(s)
specific values. Can be used for options of same length.
default value for missing. Default is NA.
char2choice(c("yes/no"," yep. / nope ","",NA,"what"),.default=NA)
Run the code above in your browser using DataLab