powered by
Grep and filter a data frame by pattern
filter_pattern(.data, col, pattern, ...)
a table of data.
a variable.
string containing a regular expression to be matched in the given character vector.
additional arguments passed to grepl
a data frame.
# NOT RUN { library(dplyr) starwars %>% filter_pattern(homeworld, "oo") # }
Run the code above in your browser using DataLab