m5_prepare.Rd
It's a memory-efficient function, which uses data.table
under the hood.
However, it still not recommended to use this function on PCs with < 16GB RAM.
In such case, consider to use a custom solution
based on [arrow](https://arrow.apache.org/docs/r/)
or [disk.frame](https://diskframe.com/index.html)
m5_prepare(sales_train, sales_test, calendar, sell_prices)
A data.frame with M5 train data
A data.frame with M5 test data
A data.frame with M5 calendar
A data.frame with M5 sell_prices
library(m5)
library(zeallot)
if (FALSE) {
m5_download('data')
c(sales_train,
sales_test,
sell_prices,
calendar) %<-% m5_get_raw_evaluation('data')
m5_data <-
m5_prepare(sales_train, sales_test, calendar, sell_prices)
}