is_single_true {tester}R Documentation

Is single true

Description

Tests if an object is a single TRUE

Usage

  is_single_true(x)

Arguments

x

an R object

See Also

is_single, is_single_false

Examples

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

[Package tester version 0.2.0 Index]