Is single true

Share:

Description

Tests if an object is a single TRUE

Usage

1

Arguments

x

an R object

See Also

is_single, is_single_false

Examples

1
2
3
4
5
6
is_single_true(TRUE)  # TRUE
is_single_true(FALSE)  # FALSE
is_single_true(c(TRUE, FALSE))  # FALSE
is_single_true(-1.0)  # FALSE
is_single_true(0)  # FALSE
is_single_true(NA)  # FALSE

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.