conv_complication | R Documentation |
Convert complication columns to logicals
conv_complication(vec)
vec |
a character vector to convert complication columns |
Matches the case-insensitive fixed string "no complication"
and negates the result.
Any string that does not match will return TRUE. NA will return NA.
a logical vector
x <- data.frame(
x = rep("no complication", 10),
y = rep("NO COMPLICATION", 10),
z = rep("complication", 10),
xx = rep("", 10),
yy = rep(NA, 10)
)
lapply(x , nsqipr:::conv_complication)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.