isSome | R Documentation |
Checks whether some object evaluates to TRUE for a provided criterion function
isSome(..., func)
... |
objects that need testing |
func |
function used to evaluate the truth |
Returns TRUE if there's some object that evaluates to TRUE according to func, and FALSE if all func evaluations lead to FALSE
x <- 1
y <- "a"
z <- NA
isSome(x, y, z, func=is.numeric)
isSome(x, y, z, func=is.na)
isSome(x, y, z, func=is.vector)
isSome(x, y, func=is.na)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.