web_table: HTML tables for markdown documents

View source: R/web_table.R

web_tableR Documentation

HTML tables for markdown documents

Description

Export tables with download, pasta and copy buttons

Usage

web_table(
  data,
  caption = NULL,
  digits = 2,
  rnames = FALSE,
  buttons = NULL,
  file_name = "file",
  scrolly = NULL,
  columnwidth = "200px",
  width = "100%"
)

Arguments

data

Dataset.

caption

Title for the table.

digits

Digits number in the table exported.

rnames

Row names.

buttons

Buttons: "excel", "copy" or "none". Default c("excel", "copy")

file_name

Excel file name

scrolly

Windows height to show the table. Default "45vh"

columnwidth

Column width. Default '200px'

width

Width in pixels or percentage (Defaults to automatic sizing)

Value

table in markdown format for html documents

Examples


## Not run: 

library(inti)

met %>%
  web_table(caption = "Web table")


## End(Not run)


inti documentation built on Oct. 27, 2023, 9:06 a.m.