split_data_on_field_and_date: Split and save dataset by date and field

Description Usage Arguments Value

View source: R/cache.R

Description

Split dataset DT on both a timestamp field and a categorical field

Usage

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

Arguments

DT

The data table/frame to split

data_path

Where to save the split parts

split_field

Which field to use for splitting

date_field

The date field to use for date splitting

date_unit

The unit to round dates to

Value

invisible(NULL)


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