Learn R Programming

tester (version 0.2.0)

is_TRUE: If TRUE or FALSE

Description

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

Arguments

x

an R object

Examples

Run this code
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