Learn R Programming

radiant.data (version 1.4.5)

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

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

Run the code above in your browser using DataLab