create_kable: Create a 'knitr::kable' object

Description Usage Arguments Details Value

View source: R/create_kable.R

Description

Creates a knitr::kable object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
create_kable(
  data,
  n_show = 20L,
  show_footnote = ifelse(nrow(data) > n_show, TRUE, FALSE),
  n_footnote = nrow(data),
  format = "html",
  ...,
  full_width = FALSE,
  position = "center"
)

create_kable_html(..., format = "html")

create_kable_md(..., format = "markdown")

Arguments

data

data.frame.

n_show

integer. Number of rows to show in output.

show_footnote

logical. Whether to show total number of rows if data is truncated.

n_footnote

integer. Number of rows to show in footnote. Only relevant if show_footnote = TRUE. This is mostly useful if data is truncated before being passed to this function, yet the user still wants to show an untruncated number by setting this value explicitly.

format

character. Passed directly to same knitr::kable() argument.

...

dots. Not currently used.

full_width

logical. Passed directly to same kableExtra::kable_styling() argument.

position

character. Passed directly to same kableExtra::kable_styling() argument.

Details

None.

Value

kable object.


aelhabr/teproj documentation built on June 18, 2020, 3:25 a.m.