Learn R Programming

favr (version 1.0.0)

are_true: Are objects TRUE or FALSE?

Description

Test if any number of inputs are TRUE or FALSE. Inputs are passed to isTRUE or isFALSE.

Usage

are_true(..., .all = FALSE)

are_false(..., .all = FALSE)

Value

Named logical, or unnamed boolean if .all is TRUE.

Arguments

...

Objects to be tested.

.all

Whether to return if all arguments are TRUE.

See Also

Examples

Run this code
x <- TRUE
y <- 1
z <- mean

are_true(x, y, z, TRUE, 0)

are_true(x, y, z, TRUE, 0, .all = TRUE)

are_false(x, y, z, TRUE, 0)

are_false(x, y, z, TRUE, 0, .all = TRUE)

Run the code above in your browser using DataLab