Map cells matching a string or regex to cell properties
Map cells matching a string or regex to cell properties
by_regex(..., .grepl_args = list(), ignore_na = TRUE)
... |
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 |
ignore_na |
If |
A function for use in map_***
functions.
Other mapping functions:
by_cases()
,
by_colorspace()
,
by_function()
,
by_quantiles()
,
by_ranges()
,
by_rows()
,
by_values()
ht <- hux(c("The cat sat", "on the", "mat")) map_bold(ht, by_regex("at" = TRUE)) map_bold(ht, by_regex("a.*a" = TRUE)) map_bold(ht, by_regex( "the" = TRUE, .grepl_args = list( ignore.case = TRUE ) ))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.