You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using arrange on grouped data (and wanting to respect the grouping), we need to use the .by_group argument. However, if you make a syntax error - e.g. by_group or .by_groups - then the arranging fails to respect the groups silently. This has the potential to lead to serious errors in analysis.
I assume this is happening because of the ... argument combined with passing an object set to TRUE. I think there needs to be something here that either checks for arguments similar to .by_group but miss-spelt, or some other method to warn / throw an error in such circumstances. Failing to group silently seems a bit dangerous.
The text was updated successfully, but these errors were encountered:
Hello,
When using
arrange
on grouped data (and wanting to respect the grouping), we need to use the.by_group
argument. However, if you make a syntax error - e.g.by_group
or.by_groups
- then the arranging fails to respect the groups silently. This has the potential to lead to serious errors in analysis.Created on 2024-01-08 with reprex v2.0.2
I assume this is happening because of the
...
argument combined with passing an object set toTRUE
. I think there needs to be something here that either checks for arguments similar to.by_group
but miss-spelt, or some other method to warn / throw an error in such circumstances. Failing to group silently seems a bit dangerous.The text was updated successfully, but these errors were encountered: