grapes-partin-grapes: A simple extension of '%in%'.

Description Usage Arguments Value See Also Examples

Description

A simple extension of %in%.

Usage

1
pattern %partin% vector

Arguments

pattern

Character string containing regular expressions to be matched.

vector

Character vector.

Value

TRUE or FALSE.

See Also

%in%, %allin%, %anyin%, %nonein%

Examples

1
2
3
"Bei" %partin% c("Beijing", "Shanghai")  # TRUE
"bei" %partin% c("Beijing", "Shanghai")  # FALSE
"[aeiou]ng" %partin% c("Beijing", "Shanghai")  # TRUE

bruceR documentation built on June 22, 2021, 1:06 a.m.