create_kable: Convert a data.frame to a kable table

Description Usage Arguments Details Value Examples

Description

Creates a kable table for output file.

Usage

1
2
3
4
5
create_kable(data = NULL, show_numrows = FALSE, numrows_show = 20,
  num_digits = getOption("digits"), emphasize = FALSE, col_emphasize,
  val_emphasize, format = "html", format.args = list(big.mark = ","), ...)

create_kable_html(...)

Arguments

data

data.frame or matrix.

show_numrows

logical.

numrows_show

numeric. Number of rows to show.

num_digits

numeric. Number of digits to round to.

emphasize

logical for adding bold emaphasis to certain rows.

col_emphasize

character. Name of column in data.frame to filter for emphasis.

val_emphasize

character/numeric. Value of filter for emphasis.

format

character. Direct parameter for knitr::kable().

format.args

list. Parameters to set directly in format.args in knitr::kable().

...

dots. Optional arguments to pass on to format.args in knitr::kable() (e.g. digits = 1).

Details

A wrapper for knitr::kable() with custom defaults.

Value

Formatted kable object.

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
   create_kable_html(mtcars)
 }

## End(Not run)

aelhabr/teutils documentation built on May 7, 2019, 7:59 a.m.