Search for a pattern in all columns of a data.frame
search_data(dataset, pattern, ignore.case = TRUE, fixed = FALSE)Data.frame to search
String to match
Should search be case sensitive or not (default is FALSE)
Allow regular expressions or not (default is FALSE)
See grepl for a detailed description of the function arguments
publishers %>% filter(search_data(., "^m"))
#> # A tibble: 1 × 2
#> publisher yr_founded
#> <chr> <int>
#> 1 Marvel 1939