Learn R Programming

m5 (version 0.1.1)

m5_get_raw: Load raw CSV files using data.table::fread() function

Description

Load raw CSV files using data.table::fread() function

Usage

m5_get_raw_evaluation(path)

m5_get_raw_validation(path)

Value

The function returns a list of five data.tables:

  • sales_train (evaluation/validation)

  • sales_test (evaluation/validation)

  • sell_prices

  • calendar

  • weights (evaluation/validation)

Arguments

path

The directory with the unzipped M5 data files

References

m5-forecasts repo by Nixtla

Examples

Run this code
if (FALSE) {
library(m5)
library(zeallot)

m5_download('data')
c(sales_train,
  sales_test,
  sell_prices,
  calendar,
  ) %<-% m5_get_raw_evaluation('data')
}

Run the code above in your browser using DataLab