Common Warnings
Grouped output warning
Matches: has grouped output.*\.groups
WHAT THIS ERROR MEANS
After summarise(), dplyr warns about the grouping structure of the result. This is informational — it tells you whether groups were dropped or kept.
HOW TO FIX IT
1. Add .groups argument to suppress: summarise(..., .groups = 'drop').
2. Use ungroup() after summarise if you want no grouping.
3. This is just a message, not an error — your code still works.
CODE EXAMPLES
BAD — THIS CAUSES THE ERROR
df %>% group_by(a, b) %>% summarise(n = n())
GOOD — CORRECT APPROACH
df %>% group_by(a, b) %>% summarise(n = n(), .groups = "drop")
Still stuck?
Paste your code in RChat and the AI will fix this error in context.