grepl to be used with native pipe |>

grepl2(x, arg1, ic = TRUE, ...)

Arguments

x

data to search

arg1

pattern

ic

ignore case

...

arguments passed to grepl.

Examples

c("a", "b", "c", "d") |> grepl2("a")
#> [1]  TRUE FALSE FALSE FALSE