Open
Description
I am trying to predict some fish numbers and I found an older post that looks promising here:
[https://www.r-bloggers.com/2017/10/demo-week-time-series-machine-learning-with-timetk/]
However, I think the code does not longer work. Could you tell me what have changed to make the example work again?
I got an error message here:
> fit_lm <- lm(price ~ ., data = select(beer_sales_tbl_aug, -c(date, diff)))
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
Metadata
Assignees
Labels
No labels
Activity