grepl in the way of pipe operator (ignore case)

x %gic% 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 with ignore.case = TRUE

Examples

'pig' %gic% 'The pig is in the cornfield'
#> [1] TRUE
'PIG' %gic% 'The PiG is in the cornfield'
#> [1] TRUE