grepl in the way of pipe operator (case sensitive)
x %g% y
x | string where to search pattern with grepl |
---|---|
y | pattern submitted to grepl |
A boolean
This functions is a pipe version of grepl
'pig' %g% 'The pig is in the cornfield'#> [1] TRUE'Pig' %g% 'The pig is in the cornfield'#> [1] FALSE