to_csv: Create a CSV file from a tidysummary

View source: R/converters.R

to_csvR Documentation

Create a CSV file from a tidysummary

Description

Takes a tidysummary object and saves it into a CSV file with UTF-8 encoding.

Usage

to_csv(df, file, overwrite = FALSE)

Arguments

df

a data frame.

file

filename to create on disk.

overwrite

whether to overwrite the file if it already exists.

Details

Uses the write.csv function to save the file.

See Also

tidysummary()

Examples

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

to_csv(data, file="filename.csv")

## End(Not run)

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