char2cond {REDCapCAST} | R Documentation |
Simple function to generate REDCap branching logic from character vector
Description
Simple function to generate REDCap branching logic from character vector
Usage
char2cond(
data,
minor.split = ",",
major.split = ";",
major.sep = " or ",
.default = NA
)
Arguments
data |
vector |
minor.split |
minor split |
major.split |
major split |
major.sep |
argument separation. Default is " or ". |
.default |
default value for missing. Default is NA. |
Value
vector
Examples
#data <- dd_inst$betingelse
#c("Extubation_novent, 2; Pacu_delay, 1") |> char2cond()
[Package REDCapCAST version 24.6.1 Index]