You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've run into a problem with compare_levels(). I want to make a custom comparison and use unevaluated expressions, but even with your demo data set this does not work:
fit %>% spread_draws(condition_mean[condition]) %>% compare_levels(condition_mean, by = condition, comparison = .(A-B))
I get the following error message:
Error in .(A - B) : could not find function "."
I've just updated R to version 3.6 and tidybayes to version 1.1.0, but the problem persists.
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue! I need to update the comparison argument to use a modern modern / tidyverse approach to unevaluated expressions. In the mean time, the . function referred to in the documentation is plyr::., so something like this should work:
fit %>%
spread_draws(condition_mean[condition]) %>%
compare_levels(condition_mean, by=condition, comparison=plyr::.(A-B))
Let me know if that works. I'll clarify this in the documentation and update the comparison code to be compatible with newer ways of doing this in rlang.
Hi,
I've run into a problem with compare_levels(). I want to make a custom comparison and use unevaluated expressions, but even with your demo data set this does not work:
fit %>% spread_draws(condition_mean[condition]) %>% compare_levels(condition_mean, by = condition, comparison = .(A-B))
I get the following error message:
I've just updated R to version 3.6 and tidybayes to version 1.1.0, but the problem persists.
The text was updated successfully, but these errors were encountered: