by_values {huxtable} | R Documentation |
Map specific cell values to cell properties
Description
Use by_values()
to set properties for cells with specific,
pre-determined contents.
Usage
by_values(..., ignore_na = TRUE)
Arguments
... |
Name-value pairs like |
ignore_na |
If |
Value
A function for use in map_***
functions.
See Also
Other mapping functions:
by_cases()
,
by_colorspace()
,
by_function()
,
by_quantiles()
,
by_ranges()
,
by_regex()
,
by_rows()
Examples
ht <- hux(letters[1:3])
map_background_color(ht,
by_values(a = "red", c = "yellow"))
map_background_color(ht,
by_values(a = "red", c = "yellow", "green"))
[Package huxtable version 5.5.6 Index]