Export a list of time series to a file.
write_ts(
tl,
fname = NULL,
format = "csv",
date_format = NULL,
timestamp_to_fn = FALSE,
round_digits = NULL,
rdata_varname = "tslist",
...
)
list of time series
character file name. Defaults to NULL, displaying output on console. Set a file name without file extension in order to store a file. Default file names / location are not CRAN compliant which is why the file name defaults to NULL.
character denotes export formats. Defaults to .csv. "csv", "xlsx", "json", "rdata" are available. Spreadsheet formats like csv allow for further optional parameters.
character denotes the date format. Defaults to NULL. If set to null the default is used: Jan 2010.
If TRUE, the current date will be appended to the file name. Defaults to FALSE.
integer, precision in digits.
character name of the list of time series within the store RData. Defaults to "tslist".
additional arguments used by spedific formats.
Additional arguments covered by ...
Name | Effect | Format(s) |
wide | Export data in a wide format (one column per series) | CSV, XLSX |
transpose | Transpose exported data (one row per series) | CSV, XLSX, only if wide = TRUE |
zip | If set to TRUE, the file is compressed into a zip archive after export | any |