is_single_true: Is single true

Description Usage Arguments See Also Examples

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


Search within the tester package
Search all R packages, documentation and source code

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

Please suggest features or report bugs with the GitHub issue tracker.

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