by_regex()
sets properties on cells which match a regular expression.
Usage
by_regex(..., .grepl_args = list(), ignore_na = TRUE)
Arguments
- ...
A list of name-value pairs. The names are regular expressions. If there is a single unnamed argument, this is the default value for unmatched cells. More than one unnamed argument is an error.
- .grepl_args
A list of arguments to pass to
grepl()
. Useful options includefixed
,perl
andignore.case
.- ignore_na
If
TRUE
,NA
values in the result will be left unchanged from their previous values. Otherwise,NA
normally resets to the default.
See also
Other mapping functions:
by_cases()
,
by_colorspace()
,
by_function()
,
by_quantiles()
,
by_ranges()
,
by_rows()
,
by_values()