rule_text_bold: Use bold text if a condition is met

Description Usage Arguments See Also Examples

View source: R/rule_text_bold.R

Description

Use bold text if a condition is met

Usage

1
2
rule_text_bold(x, columns, expression, na.bold = FALSE,
  lockcells = FALSE)

Arguments

x

A condformat object, typically created with condformat()

columns

A character vector with column names to be coloured. Optionally tidyselect::select_helpers() can be used.

expression

Condition that evaluates to TRUE for the rows where bold text should be applied.

na.bold

If TRUE, make missing values bold.

lockcells

logical value determining if no further rules should be applied to the affected cells.

See Also

Other rule: rule_css, rule_fill_bar, rule_fill_discrete, rule_fill_gradient2, rule_fill_gradient, rule_text_color

Examples

1
2
3
data(iris)
condformat(iris[c(1:5, 51:55, 101:105),]) %>%
  rule_text_bold(Species, expression = Species == "setosa")

zeehio/condformat documentation built on Nov. 16, 2018, 5:05 a.m.