Description Usage Arguments Examples
View source: R/frontend_functions.R
This function accepts a dataframe, regex-pattern and column name for definitions, and return matching rows
1 2 | match_rows(df, definitions, rx, match_name = NULL, wildcards = NULL,
keep_all_rows = FALSE)
|
df |
Sorted and grouped dataframe to filter |
definitions |
Column containing the definition of rows |
rx |
Simple regex-like statement to filter for - quoted. |
match_name |
Optional column name for match-number. Defaults to NULL, meaning no column will be created. |
wildcards |
keywords (nicknames) in your pattern ('rx') that should match any rows |
keep_all_rows |
Boolean allows you to return all rows, uncluding nonmatching rows. Meaninless if match_name is not set. Default FALSE. |
1 2 3 4 | ## Not run:
match_rows(msft, change, "UP{4,} DOWN{3,}", match_name=mnum)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.