Predicate function operator that creates new predicate functions linked by the || operator.

Orify(...)

Arguments

...

n functions to apply in order from left to right

Value

A predicate function linked by the || operator.

See also

Andify to create new predicate functions linked by the && operator.

Other predicate function operators: Andify

Examples

# Examples is_character_or_factor <- Orify(is.character, is.factor) is_character_or_factor(letters) # TRUE
#> [1] TRUE
is_character_or_factor(factor(state.abb)) # TRUE
#> [1] TRUE
is_character_or_factor(1:100) # FALSE
#> [1] FALSE