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() )
Rows: 9794 Columns: 31 ── Column specification ──────────────────────────────────────────────────────── Delimiter: "," chr (24): LocationAbbr, LocationDesc, TopicType, TopicDesc, MeasureDesc, Dat... dbl (7): YEAR, Data_Value, Data_Value_Std_Err, Low_Confidence_Limit, High_C... ℹ 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.