to_excel | R Documentation |
Takes a tidysummary object and saves it into an Excel file.
to_excel(df, file, as_table = TRUE, overwrite = FALSE)
df |
a data frame. |
file |
filename to create on disk. |
as_table |
whether the summary should be formatted as an Excel table. |
overwrite |
whether to overwrite the file if it already exists. |
Uses the openxlsx
package for saving Excel files.
tidysummary()
## Not run: data <- tidysummary(iris) to_excel(data, file="summary.xlsx") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.