Skip to content

Error running the model with timetk #162

Open
@FelipeCarrillo

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions