grepl in the way of pipe operator (case sensitive)

x %g% y

Arguments

x

string where to search pattern with grepl

y

pattern submitted to grepl

Value

A boolean

Details

This functions is a pipe version of grepl

Examples

'pig' %g% 'The pig is in the cornfield'
#> [1] TRUE
'Pig' %g% 'The pig is in the cornfield'
#> [1] FALSE