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 May 20, 2019, 6:46 p.m.