rmd_table: Nice Table in R Markdown.

View source: R/deprec.R

rmd_tableR Documentation

Nice Table in R Markdown.

Description

This function utilises the flexibility of kableExtra to choose some 'nice' default tables for either HTML or PDF via LaTeX. (subjective)

Usage

rmd_table(x, fmt = c("html", "latex"), scroll_vert = NULL, ...)

Arguments

x

data.frame. Data to be converted into a table.

fmt

choice. Is the table to be displayed via HTML ("html") or via PDF ("latex").

scroll_vert

numeric. If the format is HTML, create a scroll box of this height (in pixels)

...

extra arguments to be passed to either kableExtra::kbl or kableExtra::kable_styling

Value

Either a HTML table or LaTeX table, depending on format.

Future Development

  • Add in some method to alter column widths, likely as a ncol-length simplex.


nclJoshCowley/jcutils documentation built on Nov. 22, 2022, 10:16 a.m.