Convert a vector to boolean/logical
to_boolean(x, ...)# S3 method for logical
to_boolean(x, ...)
# S3 method for numeric
to_boolean(x, true = 1L, false = 0L, ...)
# S3 method for character
to_boolean(x, true = NULL, false = NULL, ...)
# S3 method for factor
to_boolean(x, true = NULL, false = NULL, ...)
A logical
vector of equal length as x
A vector of values
Additional arguments passed to methods
A vector of values to convert to TRUE
A vector of values to convert to FALSE