View source: R/replace_boolean.r
replace_boolean | R Documentation |
Replace a boolean
replace_boolean(x, true_value = NULL, false_value = NULL)
x |
A boolean vector |
true_value |
A single value, that will replace TRUE values |
false_value |
A single value, that will replace FALSE values |
A numeric value
replace_boolean(c(T,T,T,F,F),1,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.