powered by
Use bold text if a condition is met
rule_text_bold(x, columns, expression, na.bold = FALSE, lockcells = FALSE)
A condformat object, typically created with condformat()
condformat()
A character vector with column names to be coloured. Optionally tidyselect::language() can be used.
tidyselect::language()
Condition that evaluates to TRUE for the rows where bold text should be applied.
TRUE
If TRUE, make missing values bold.
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()
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") if (FALSE) { print(cf) }
Run the code above in your browser using DataLab