Learn R Programming

tester (version 0.3.1)

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

Usage

is_TRUE(x)
is_FALSE(x)
is_true(x)
is_false(x)
true_or_false(x)

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