-
Notifications
You must be signed in to change notification settings - Fork 986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grouping sets #1377
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
19 tasks
jangorecki
added a commit
that referenced
this issue
Apr 24, 2016
mattdowle
added a commit
that referenced
this issue
Aug 7, 2017
RC - Grouping Sets, rollup, cube. #1377
|
This is just awesome. Makes working with pivot tables in Shiny way easier. |
Could be, you are welcome to file a feature request (including minimal example of current vs requested), or if one already exists, then upvote existing one. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some keywords: GROUPING SETS, ROLLUP, CUBE, GROUPING
Some references: postgres, Oracle, SQL Server, groupings combined with arbitrary functions
Grouping sets and friends are useful to pre-calculate various aggregation levels, which is often desired. Api for that feature in data.table is not very friendly, see Aggregating sub totals and grand totals with data.table.
In case of rollup those are aggregations for provided
by
from top to bottom. See description from postgres man, and example code below.is equivalent to:
I wonder if there could be cheap speed-up of that process? this is potentially heavy computing task. Would be great to have computation of grouping sets feature developed in C, so all the rollup/cube and other features could be built on top of grouping sets more easily in R still utilizing full speed.
Answers to update when closed:
Some other questions can get new answers also:
The text was updated successfully, but these errors were encountered: