The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
rollup: A Tidy implementation of
grouping sets, rollup and cube,
which are extensions of the group_by clause that compute
multiple group_by clauses in a single statement.
# From CRAN
install.packages("rollup")
# From Github
devtools::install_github("JuYoungAhn/rollup")rollup, please refer to
the Tutorial.mtcars %>% group_by(vs, am) %>% grouping_sets("vs","am",c("vs","am"),NA) %>%
summarize(n=n(), avg_mpg=mean(mpg))
mtcars %>% group_by(vs, am) %>% with_rollup() %>%
summarize(n=n(), avg_mpg=mean(mpg))
mtcars %>% group_by(vs, am) %>% with_cube() %>%
summarize(n=n(), avg_mpg=mean(mpg))These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.