powered by
Searches all columns for a term and returns all rows with at least one match. Author: Bryce Chamberlain.
sch(x, pattern, ignore.case = FALSE, fixed = FALSE)
Data to search.
Regex patter to search. Most normal search terms will work fine, too.
Ignore case in search (uses grepl).
Passed to grepl to match string as-is instead of using regex. See ?grepl.
Matching rows.
# NOT RUN { sch( iris, 'setosa' ) # }
Run the code above in your browser using DataLab