my_kable: Version of 'kable()' with specific default kableExtra styling

View source: R/kable.R

my_kableR Documentation

Version of kable() with specific default kableExtra styling

Description

Shorthand to apply both knitr::kable() and kableExtra::kable_styling() to a table, using styling options bootstrap_options = c("striped", "condensed") and full_width = FALSE. The default number of digits is set to 3 but can be changed.

Usage

my_kable(df, digits = 3, position = "center", ...)

Arguments

df

A data frame.

digits

Sets the number of digits (via the kable() digits argument).

position

Passed to kableExtra::kable_styling().

...

Optional arguments passed to knitr::kable().

Details

Only one argument (position) from kableExtra::kable_styling() can be changed here.


jedwards24/edwards documentation built on Sept. 2, 2023, 8:16 a.m.