is_single_true: Is single true

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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.