to_excel: Create an Excel file from a tidysummary

View source: R/converters.R

to_excelR Documentation

Create an Excel file from a tidysummary

Description

Takes a tidysummary object and saves it into an Excel file.

Usage

to_excel(df, file, as_table = TRUE, overwrite = FALSE)

Arguments

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.

Details

Uses the openxlsx package for saving Excel files.

See Also

tidysummary()

Examples

## Not run: 
data <- tidysummary(iris)

to_excel(data, file="summary.xlsx")

## End(Not run)

peterdalle/tidysummary documentation built on March 27, 2022, 4:30 p.m.