kb: kable wrapper

View source: R/fn_all.R

kbR Documentation

kable wrapper

Description

Sugar function for default kable output.

Usage

kb(d, fnote = NULL, cap = NULL, sig = 3, dig = NULL, src = 0, omit = "")

Arguments

d

⁠<dfr>⁠ A data frame.

fnote

⁠<chr>⁠ Footnote.

cap

⁠<chr>⁠ Caption.

sig

⁠<int>⁠ Number of significant digits to compute.

dig

⁠<int>⁠ Number of decimal places to display.

src

⁠<int>⁠ Either 1 or 2 to add source label over 1 or 2 lines.

omit

⁠<chr>⁠ Text to omit from the source label.

Value

A kable object.

Examples

mtcars |> head() |> kb()
mtcars |> head() |> kb(src=1)
mtcars |> head() |> kb("Footnote")
mtcars |> head() |> kb("Footnote",src=1)
mtcars |> head() |> kb(sig=2,dig=1)

edar documentation built on Nov. 15, 2026, 1:07 a.m.