Let me try to rephrase your question to make sure that I understand exactly what you want to do.
, . , , - . :
Date Sales
2014-08-11 378
2014-08-18 348
2014-08-25 314
2014-09-01 324
2014-09-08 352
2014-09-15 453
...
, RandomForest , . - , y ( : ) x (). x, , . , , , .
:
1) . , , , ARIMA. . , ? , , ? , ,
2) , RandomForest . , , (, ...) . R- lubridate . :
library(lubridate)
Subsales <- mutate(Subsales, Weekday = wday(Date, label = TRUE))
, !