write_db | R Documentation |
A helper utility to handle writing of spreadsheet files.
write_db(df, file, filetype, ...)
df |
A |
file |
The name of the file to be written to. |
filetype |
The filetype of the input spreadsheet. Microsoft Excel
( |
... |
Additional parameters passed to the file reader. The parameters accepted depend on the input filetype. |
This function should not need to be called directly by the user.
The code used to write the file depends on the filetype. The filetype is
determined by the extension given in the file
parameter or can be
overridden by the filetype
parameter. For more information about file
writing parameters, have a look at the documentation for the respective
packages: write.xlsx
for writing .xlsx
files.
Note that an input filetype of .xls
will cause a .xlsx
file to
be written (as .xls
is not supported).
write_ods
for writing .ods
files. This is the
Open Document standard used by software such as OpenOffice and LibreOffice.
write.csv
for writing .csv
files. If
filetype = 'csv2'
, then write.csv2
is used (where
commas are used as decimal separators as is common in Europe).
write.table
for writing .tsv
, .tab
,
.txt
files. This is just tab-delimited text. The same file extension
used for the input file will be used to write the output.
make_ids
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.