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

filter_at_grepl(
  data,
  col,
  grepl_phrase,
  evaluates_to = TRUE,
  ignore.case = TRUE
)

Arguments

col

column to filter

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