dr808
1
Hi, is there someone knows why I have this error when I use .drop=FALSE in my group_by ?
Error in `tidyselect_locs()`:
! Can't subset columns with `FALSE`.
✖ `FALSE` must be numeric or character, not `FALSE`.
It worked yesterday...
iris %>% filter(Species != "setosa") %>%
group_by(Species, .drop = FALSE) %>%
summarise(avg_petal_length = mean(Petal.Length))
Thanks
seems like you loaded additional libraries, a quick google search of 'tidyselect_locs' shows up as a function from markfairbanks/tidytable: Tidy interface to 'data.table' (github.com)
dr808
3
Thanks again, the problem was the library tidytable
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.