to_markdown | R Documentation |
Takes a tidysummary object and converts it into Markdown that is returned.
If the file
argument is supplied, the Markdown is saved to a file
instead.
to_markdown(df, file = NULL, overwrite = FALSE, column_quotes = FALSE, ...)
df |
a data frame. |
file |
file name to save. If file is |
overwrite |
whether to overwrite the file if it already exists. |
column_quotes |
whether to use quotes around column names. |
... |
other arguments passed on to |
Sends the data frame to knitr::kable()
.
A character vector of the table source code.
tidysummary()
## Not run: data <- tidysummary(iris) to_markdown(data) to_markdown(data, file="summary.md") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.