write_csv()
etc., but instead
of writing to disk, they return a string.format_delim(x, delim, na = "NA", append = FALSE, col_names = !append)format_csv(x, na = "NA", append = FALSE, col_names = !append)
format_tsv(x, na = "NA", append = FALSE, col_names = !append)
" "
. Must be
a single character.na
will
always be quoted.FALSE
, will overwrite existing file. If TRUE
,
will append to existing file. In both cases, if file does not exist a new
file is created.write_excel_csv()
also includes a
https://en.wikipedia.org/wiki/Byte_order_mark
which indicates to Excel the csv is UTF-8 encoded. Values are only quoted if needed: if they contain a comma, quote or newline.