replace_boolean.Rd
Replace a boolean
replace_boolean(x, true_value = NULL, false_value = NULL)
A boolean vector
A single value, that will replace TRUE values
A single value, that will replace FALSE values
A numeric value
replace_boolean(c(T,T,T,F,F),1,2) #> [1] 1 1 1 2 2