Filter at a variable that contains or doesn't contain a phrase

filter_all_grepl(data, grepl_phrase, evaluates_to = TRUE, ignore.case = TRUE)

Arguments

grepl_phrase

phrase that is being filtered for

evaluates_to

whether the filter is for a grepl evaluation of TRUE or FALSE. Defaults to TRUE.

ignore.case

boolean the ignore.case argument of grepl function

dataframe

input dataframe

col

column to filter

See also