While it’s nice to be able to read in a variety of data formats, it’s equally important to be able to output data somewhere.
The readr
package provides data exporting functions which have the pattern write_*
:
write_csv()
,write_delim()
, others.
From write_csv()
documentation:
write_csv(x, file, na = "NA", append = FALSE, col_names = !append, quote_escape = "double", eol = "\n", path = deprecated() )
Rows: 768 Columns: 6 ── Column specification ──────────────────────────────────────────────────────── Delimiter: "," chr (1): county dbl (5): rate, lower95cl, upper95cl, visits, year ℹ Use `spec()` to retrieve the full column specification for this data. ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.