Description Usage Arguments Value Author(s)
Filter (subset) a data frame by a vector rgx
of regular
expressions applied to a specified column of the data frame. The
filter is essentially 'rgx[1] | rgx[2] | ... rgx[N]
'.
Filtering is conditional, in that if the argument rgx
is
NULL
, the dataframe is returned unchanged.
1 | condMultiFilter(dfr, col, rgx, ...)
|
dfr |
the data frame to be filtered/subsetted |
col |
character: the name of the column of the data frame to which filtering is to be applied. |
rgx |
a character vector of regular expressions. Remember that the character strings are parsed by the R interpreter before being parsed by the regular expression parser, so backslashes must be 'doubled up'. |
... |
other arguments to be passed to |
A data frame.
Alexander Zwart (alec.zwart at csiro.au)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.