isEvery: Checks whether all objects evalutes to TRUE for a provided...

View source: R/0helpers.R

isEveryR Documentation

Checks whether all objects evalutes to TRUE for a provided function criterion

Description

Checks whether all objects evalutes to TRUE for a provided function criterion

Usage

isEvery(..., func)

Arguments

...

objects that need testing

func

function used to evaluate the truth

Value

Returns TRUE if any objects are a try error, returns FALSE otherwise

Examples

x <- 1
y <- "a"
z <- NA

isEvery(x, y, z, func=is.numeric)
isEvery(x, y, z, func=is.na)
isEvery(x, y, z, func=is.vector)

AlexanderLyNL/bstats documentation built on Sept. 11, 2023, 4:10 p.m.