yesno_to_logical | R Documentation |
A helper function to convert a two-valued character vector to a logical vector.
yesno_to_logical(x, yn = c("I", "N"), na_to_false = FALSE)
x |
A character vector. |
yn |
A character vector of length 2, containing the strings for "yes" (first element) and "no" (second element). Defaults to Hungarian shorthand for "igen" and "nem". |
na_to_false |
Convert |
A logical vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.