kableDark: output a nicely formatted html table

View source: R/Helpers.R

kableDarkR Documentation

output a nicely formatted html table

Description

This returns a html table with the input data

Usage

kableDark(data, caption = NULL, position = NULL)

Arguments

data

A data.frame containing data of interest to show via a table

caption

A caption for the table

position

The position for the table if used within a quarto document. This is the "real" or say floating position for the latex table environment. The kable only puts tables in a table environment when a caption is provided. That is also the reason why your tables will be floating around if you specify captions for your table. Possible choices are h (here), t (top, default), b (bottom) and p (on a dedicated page).

Details

Input the data that you want to be shown via a dark html table

Value

An object of class 'knitr_kable' that will show the data via a nice html table

See Also

Other helper: getExampleConnectionDetails(), printReactable(), removeSpaces()

Examples

kableDark(
data = data.frame(a=1,b=4), 
caption = 'A made up table to demonstrate this function',
position = 'h'
)


OhdsiReportGenerator documentation built on April 12, 2025, 2:09 a.m.