grapes-pin-grapes: Partial in

%pin%R Documentation

Partial in

Description

Analogue of %in% but indicating partial match of the left operand.

Usage

x %pin% Y

Arguments

x

The values to be matched. Same as %in%.

Y

A vector of values (perl regular expressions) to be matched against.

Value

TRUE for every x for which any grepl is TRUE.

Examples

x <- c("Sydney Airport", "Melbourne Airport")

x %pin% c("Syd", "Melb")




hutils documentation built on April 13, 2022, 5:23 p.m.