Description Usage Arguments Value Examples
Filter a data frame by values matching a pattern
1 | filter_by_pattern(df, colname, pattern, exclude = FALSE, ignore.case = TRUE)
|
df |
A data frame |
colname |
String column name on which to filter |
pattern |
Regular expression pattern to match for filtering |
exclude |
Exclude cases matching pattern? Defaults to FALSE. |
ignore.case |
Boolean whether string searches should be case-insensitive |
a filtered data frame
1 | filter_by_pattern(iris, "Species", "v.r")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.