write_xlsx | R Documentation |
Writes a data frame to an xlsx file. To create an xlsx with (multiple) named
sheets, simply set x
to a named list of data frames.
write_xlsx(
x,
path = tempfile(fileext = ".xlsx"),
col_names = TRUE,
format_headers = TRUE,
use_zip64 = FALSE
)
x |
data frame or named list of data frames that will be sheets in the xlsx |
path |
a file name to write to |
col_names |
write column names at the top of the file? |
format_headers |
make the |
use_zip64 |
use zip64 to enable support for 4GB+ xlsx files. Not all platforms can read this. |
Currently supports strings, numbers, booleans and dates. Formatting options may be added in future versions.
# Roundtrip example with single excel sheet named 'mysheet'
tmp <- write_xlsx(list(mysheet = iris))
readxl::read_xlsx(tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.