Description Usage Arguments Note Author(s) Examples
A simple wrapper for writing common data formats. The format is determined
by the extension given in file
. Flat files are written with readr
,
and the encoding is always UTF-8
. For xlsx, the function uses to_sheet
(which in turn uses openxlsx
).
1 | write_data(x, file, ...)
|
x |
The data to be written. ( |
file |
Path. |
Use lapply
to write a list of data to flat files (csv, txt etc).
Kristian D. Olsen
1 | write_data(x, file = "test.xlsx")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.