archive: Slice data_frame into files

Description Usage Arguments

View source: R/archive.r

Description

archive splits data_frame by time specified in the path argument and saves to files.

Usage

1
archive(df, tz = "UTC", path = "%Y_%m.dat", col_names = NULL)

Arguments

df

data_frame to save. Must contain a column named 'time'

tz

timezone of POSIXct timestamp in df

path

file naming scheme used to split and save data. Format must be compatible with strptime

col_names

whether to write header line with column names, NULL applies column names to new files only, FALSE doesn't write a header, and TRUE will write a line with the column names even if appending. Be careful with TRUE, as you may end up with column flags mid-file.


benfasoli/uataq documentation built on Sept. 27, 2021, 9:29 p.m.