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