View source: R/rule_text_bold.R
rule_text_bold | R Documentation |
Use bold text if a condition is met
rule_text_bold(x, columns, expression, na.bold = FALSE, lockcells = FALSE)
x |
A condformat object, typically created with |
columns |
A character vector with column names to be coloured. Optionally
|
expression |
Condition that evaluates to |
na.bold |
If |
lockcells |
logical value determining if no further rules should be applied to the affected cells. |
Other rule:
rule_css()
,
rule_fill_bar()
,
rule_fill_discrete()
,
rule_fill_gradient2()
,
rule_fill_gradient()
,
rule_text_color()
data(iris)
cf <- condformat(iris[c(1:5, 51:55, 101:105),]) %>%
rule_text_bold(Species, expression = Species == "setosa")
## Not run:
print(cf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.