-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error in across #7041
Comments
This is definitely an issue with my current environment not with dplyr |
The MASS package did mask the select function |
I also have the same problem... I was able to run my code before but I guess with the latest update I get this error when I used group_by() and then summarise(across())... should I install MASS package to solve the issue? |
When you have issues with masked functions, you have to prefix by the name of the package (or change the order of the loadind)
For example if you load a package containing the |
Results in following error
Error in
across(): ! Must only be used inside data-masking verbs like
mutate(),
filter(), and
group_by(). Run
rlang::last_trace()to see where the error occurred. (ins)>
The code was copied from the documentation
https://dplyr.tidyverse.org/reference/across.html#:~:text=across()%20makes%20it%20easy,colwise%22)%20for%20more%20details.
The text was updated successfully, but these errors were encountered: