match_rows_raw: Regex row matcher

Description Usage Arguments Examples

View source: R/frontend_functions.R

Description

This function accepts a dataframe, regex-pattern and column name for definitions, and return matching rows

Usage

1
2
match_rows_raw(df, definitions, rx, match_name = NULL,
  keep_all_rows = FALSE)

Arguments

df

Sorted and grouped dataframe to filter

definitions

Column containing the definition of rows

rx

Perl-regex pattern to look for, based on the definitions created

match_name

Optional column name for match-number. Defaults to NULL, meaning no column will be created.

keep_all_rows

Boolean allows you to return all rows, uncluding nonmatching rows. Meaninless if match_name is not set. Default FALSE.

Examples

1
2
3
4
## Not run: 
match_rows_raw(msft, change2, "([D]{4,})", mnum)

## End(Not run)

radbrt/rowpatternmatcher documentation built on Nov. 5, 2019, 2:07 a.m.