View source: R/timed-rotating-save.R
save_timed_rotating_files | R Documentation |
Save into timed rotating files
save_timed_rotating_files(
x,
path,
base_file_name,
rotation_interval = "1 day",
time_suffix_format = "auto",
trunc_start = TRUE,
chunk_number = NULL,
drop_time = FALSE,
append = TRUE,
filter = NULL,
...
)
x |
data.table. Data to be written, first variable should be named time and of type POSIXct |
path |
string. Path where files should be saved. |
base_file_name |
string. File name to be used as a base. |
rotation_interval |
Duration of data to be written on each file eg. '1 day' or '1 hour 30 minutes' |
time_suffix_format |
Time format for file name suffix e.g. |
trunc_start |
Whether to truncate the start time to the nearest rotation_interval. |
chunk_number |
numeric. Number of the chunk. |
append |
logical. Whether to append if same file exists on disk |
... |
Passed to fwrite. |
Important: date time columns are converted to UTC upon saving.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.