conv_yesno | R Documentation |
Convert yes/no columns to logicals
conv_yesno(vec)
vec |
a character vector to convert yes/no columns |
Matches the case-insensitive fixed string "yes"
. NA will return NA.
a logical vector
x <- data.frame(x = rep("yes", 10), y = rep("YES", 10), z = rep("no", 10),
xx = rep("NO", 10), yy = rep(NA, 10))
lapply(x , nsqipr:::conv_yesno)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.