powered by
These functions bypass R's automatic conversion rules and check that x is literally TRUE or FALSE.
x
TRUE
FALSE
is_true(x)is_false(x)
is_false(x)
object to test
# NOT RUN { is_true(TRUE) is_true(1) is_false(FALSE) is_false(0) # }
Run the code above in your browser using DataLab