Generate an interactive data table with download buttons.

create_dt(
  dat,
  caption = "",
  buttons = c("copy", "csv", "excel", "pdf", "print"),
  scrollY = 400
)

Arguments

dat

Data to show.

caption

Table caption.

buttons

Download button types to include in table.

scrollY

Maximum height (in pixels) before defaulting to scrolling.

Examples

create_dt(dat = mtcars)
#> Loading required namespace: DT