highlight_cell: Highlight cell in kable table

View source: R/print.R

highlight_cellR Documentation

Highlight cell in kable table

Description

Highlights in red numeric cells that are above the specified threshold.

Usage

highlight_cell(.l, .i, .threshold)

Arguments

.l

character scalar of the line to be formatted (a row of a kable table)

.i

the index of the column to check

.threshold

the threshold to check against. If value is greater than .threshold then it is formatted as red.

Value

character vector of formatted values


metrumresearchgroup/bbr documentation built on March 29, 2025, 1:08 p.m.