trying to group data

it appears that there is an error in the code related to the summarize() function. Specifically, the error message indicates that there is a problem with the vec_proxy_compare()

country_counts <- data %>%
group_by(country) %>%
summarize(total= n(), .groups="drop_last") %>%

Please post a sample of your data. You can do this by posting the output of the dput function.


Place a line with three back ticks just before and after the output, like this
output of dput() goes here