Skip to content
R for the Rest of Us Logo

What the heck does `summarise()` ungrouping output (override with `.groups` argument) mean?

Ever been using R and gotten this message?

summarise() ungrouping output (override with .groups argument)

What the heck does it mean?

This is not an error. It’s just R’s way (the dplyr package specifically) of telling you what is happening with your data.

Here’s a quick explanation of what this message is all about and how to avoid it.

Hope that helps! Just a heads up that newer versions of the dplyr package dropped this behavior. So if you never see the summarise() ungrouping output (override with .groups argument) count yourself lucky!

Sign up for the newsletter

Get blog posts like this delivered straight to your inbox.

Let us know what you think by adding a comment below.

You need to be signed-in to comment on this post. Login.

David Keyes By David Keyes March 2, 2022

Sign up for the newsletter

R tips and tricks straight to your inbox.