Learn R Programming

writexl (version 0.1)

write_xlsx: Export to xlsx

Description

Writes a data frame to an xlsx file.

Usage

write_xlsx(x, path = tempfile(fileext = ".xlsx"), col_names = TRUE)

Arguments

x

data frame to write to disk

path

a file name to write to

col_names

write column names at the top of the file?

Details

Currently supports strings, numbers, booleans and dates. Formatting options may be added in future versions.

Examples

Run this code
# NOT RUN {
# Roundtrip example
tmp <- write_xlsx(iris)
readxl::read_xlsx(tmp)
# }

Run the code above in your browser using DataLab