R/lgl.R
is.TRUE.Rd
It's just logical
is.TRUE(x) is.FALSE(x) allTRUE(...) anyTRUE(...)
Values to be tested.
x <- list(1, TRUE, list(TRUE), FALSE, "Hello world!") is.TRUE(x) #> [1] FALSE TRUE FALSE FALSE FALSE is.FALSE(x) #> [1] FALSE FALSE FALSE TRUE FALSE allTRUE(TRUE, FALSE, stop("NOOOO")) #> [1] FALSE anyTRUE(TRUE, FALSE, stop("NOOOO")) #> [1] TRUE