R/gt_highlight_p.R

Defines functions gt_highlight_p

gt_highlight_p <- function(x) {

  out <- x %>%
    gt::tab_style(
      style = gt::cell_text(weight = "bold"),
      locations = gt::cells_body(rows = `p.value` <= 0.05)
    )

  out
}
seblammers/slx documentation built on Jan. 29, 2022, 2:58 a.m.