Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

search_data

Search for a pattern in all columns of a data.frame


Description

Search for a pattern in all columns of a data.frame

Usage

search_data(dataset, pattern, ignore.case = TRUE, fixed = FALSE)

Arguments

dataset

Data.frame to search

pattern

String to match

ignore.case

Should search be case sensitive or not (default is FALSE)

fixed

Allow regular expressions or not (default is FALSE)

See Also

See grepl for a detailed description of the function arguments

Examples

publishers %>% filter(search_data(., "^m"))

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.