While its 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() )
New names: Rows: 8035 Columns: 68 ── Column specification ──────────────────────────────────────────────────────── Delimiter: "," chr (3): CaliforniaCounty, ApproxLocation, CES4.0PercRange dbl (65): ...1, CensusTract, ZIP, Longitude, Latitude, CES4.0Score, CES4.0Pe... ℹ 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. • `` -> `...1`