split_data_on_date: Split and save dataset by date

Description Usage Arguments Value

View source: R/cache.R

Description

Split dataset DT on subfolders defined by its date (Y/m/d/H format)

Usage

1
2
split_data_on_date(DT, data_path = "data/cache", date_field,
  date_unit = c("hour", "day", "Month", "year", "week", "minute"))

Arguments

DT

The data frame to split

data_path

The data path to save the parts of the dataset

date_field

The name of the date field to use for splitting

date_unit

The date unit to use for rounding to complete intervals

Value

invisible(NULL)


henfiber/later documentation built on June 6, 2017, 2:18 a.m.