Orify: Predicate function operator that creates new predicate...

Description Usage Arguments Value See Also Examples

View source: R/Orify.R

Description

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

Usage

1

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

1
2
3
4
5
# Examples
is_character_or_factor <- Orify(is.character, is.factor)
is_character_or_factor(letters) # TRUE
is_character_or_factor(factor(state.abb)) # TRUE
is_character_or_factor(1:100) # FALSE

paulhendricks/functools documentation built on May 24, 2019, 8:41 p.m.