save_timed_rotating_files: Save into timed rotating files

View source: R/timed-rotating-save.R

save_timed_rotating_filesR Documentation

Save into timed rotating files

Description

Save into timed rotating files

Usage

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,
  ...
)

Arguments

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. "%Y%m%d%H%M%S" If left to auto, it will automatically choose formatting.

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.

Details

Important: date time columns are converted to UTC upon saving.


influxr/influxr documentation built on May 1, 2024, 2:07 a.m.