md_table: Generate a markdown table from a data.frame

View source: R/md_table.R

md_tableR Documentation

Generate a markdown table from a data.frame

Description

Generate a markdown table from a data.frame

Usage

md_table(tab, caption, as_character = FALSE, ...)

Arguments

tab

a data frame

caption

text of the caption. When omitted no caption is added to the table.

as_character

return the table as a character vector. If FALSE the table will be written to the standard output.

...

unused.

Value

Then as_character = FALSE a character vector with the markdown containing the table is returned. Otherwise, nothing is returned; the markdown is then written to the console.


djvanderlaan/tinymarkdown documentation built on March 19, 2023, 11:56 p.m.