| %pin% {hutils} | 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 |
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")
[Package hutils version 1.8.1 Index]