Last chance! 50% off unlimited learning
Sale ends in
is_TRUE
and is_true
tests if x is TRUE
is_FALSE
and is_false
tests if x is FALSE
true_or_false
returns whether the condition is
true or false
an R object
is_true(TRUE)
is_true(FALSE)
is_false(TRUE)
is_false(FALSE)
true_or_false(TRUE)
true_or_false(FALSE)
is_true(1) # FLASE
is_false("FALSE") # FALSE
Run the code above in your browser using DataLab