search_data {radiant.data}R Documentation

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"))

[Package radiant.data version 1.6.6 Index]