grepl in the way of pipe operator (ignore case)
x %gic% y
x | string where to search pattern with grepl |
---|---|
y | pattern submitted to grepl |
A boolean
This functions is a pipe version of grepl with ignore.case = TRUE
'pig' %gic% 'The pig is in the cornfield'#> [1] TRUE'PIG' %gic% 'The PiG is in the cornfield'#> [1] TRUE