Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

augment.mdl_df doesn't work when a mixed model is present #237

Closed
tanner-ellison opened this issue Jun 27, 2020 · 0 comments
Closed

augment.mdl_df doesn't work when a mixed model is present #237

tanner-ellison opened this issue Jun 27, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tanner-ellison
Copy link

augment.mdl_df doesn't work when a mixed model is present

tsibbledata::olympic_running %>% 
aggregate_key(Length * Sex, Time = mean(Time)) %>%
model(mean = MEAN(Time), naive = NAIVE(Time)) %>% 
mutate(mixed = (mean + naive) / 2) %>%
augment()

Error : Can't combine `mean` <lst_mdl> and `mixed` <lst_mdl>.
✖ Some attributes are incompatible.
ℹ The author of the class should implement vctrs methods.
ℹ See <https://vctrs.r-lib.org/reference/faq-error-incompatible-attributes.html>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants