I had a piece of R script running to get an overview on missing values in a repeated measures data frame. I used naniar and dplyr from the tidyverse and it worked fine. I used the combination to group the output by different factors (e.g. study, day, participant,...):
miss_trigger <- data_mlm_npu_filter[,c("Trigger_counter", "stadi_AU")] %>%
group_by(Trigger_counter) %>%
miss_var_summary()
Now, some months later, I first got the warning message
#Warning message:
# `cols` is now required.
#Please use `cols = c(data)`
After searching for the warning message, I found that there has change something with nesting/unnesting but this information did not help me to fix the warning/what changes to apply to my code.
And now after updating R to 3.6.2, I am just getting:
Error in group_by_fun(data, .fun = miss_var_summary()) :
could not find function "group_by_fun"
The miss_var_summary function itself works without problems. So, I would really just like to group my output from naniar as before. What do I have to do? Apparently I am missing a key information or understanding of the packages I am using on how to fix this myself.
This was a bug introduced by a new version of tidyr, this should now work:
Created on 2020-05-14 by the reprex package (v0.3.0)