-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
data(iris)
iris %>%
group_by(Species) %>%
summarise(across(starts_with("Sepal"), ~ mean(.x, na.rm = TRUE)))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.
Metadata
Metadata
Assignees
Labels
No labels