Skip to content
/ rollup Public

❗ This is a read-only mirror of the CRAN R package repository. rollup — A Tidy Grouping Set Aggregation. Homepage: https://juyoungahn.github.io/rollup/

License

Notifications You must be signed in to change notification settings

cran/rollup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rollup

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.

Install

# From CRAN
install.packages("rollup")

# From Github
devtools::install_github("JuYoungAhn/rollup")

CRAN_Download_Badge

In a Nutshell

  • If you want to learn more about 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))

About

❗ This is a read-only mirror of the CRAN R package repository. rollup — A Tidy Grouping Set Aggregation. Homepage: https://juyoungahn.github.io/rollup/

Resources

License

Stars

Watchers

Forks

Packages

No packages published