tidyverse / dplyr

dplyr: A grammar of data manipulation
https://dplyr.tidyverse.org/
Other
4.79k stars 2.12k forks source link

summarize() is not equivalent to summarise() #7023

Closed dcaud closed 6 months ago

dcaud commented 6 months ago

Summarize gives error:

mtcars |>
  group_by(vs, am) |>
  summarize(mean_mpg = mean(mpg))

Summarise works as expected

mtcars |>
  group_by(vs, am) |>
  summarise(mean_mpg = mean(mpg))
dcaud commented 6 months ago

Because hmisc library was loaded, which has its own summarize. More powerful warnings or errors about that namespace collision would be nice.