Split-Apply-Combine with Dynamic Grouping

Partitioning a data set by one or more of its attributes and computing an aggregate for each part is one of the most common operations in data analyses. There are use cases where the partitioning is determined dynamically by collapsing smaller subsets into larger ones, to ensure sufficient support for the computed aggregate. These use cases are not supported by software implementing split-apply-combine types of operations. This paper presents the R package accumulate that offers convenient interfaces for defining grouped aggregation where the grouping itself is dynamically determined, based on user-defined conditions on subsets, and a user-defined subset collapsing scheme. The formal underlying algorithm is described and analyzed as well.

Authors

Institutions

Publication Details

Journal
Journal of Statistical Software
Published
2025-01-01
DOI
https://doi.org/10.18637/jss.v112.i04
Citations
1
Primary Topic
Embedded Systems Design Techniques
Type
article
Field-Weighted Citation Impact
2.27
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Split-Apply-Combine with Dynamic Grouping

Mark P. J. van der Loo
1 citations
Journal of Statistical Software
Embedded Systems Design Techniques
2.27
article

Split-Apply-Combine with Dynamic Grouping

Mark P. J. van der Loo
article en
1 citations

Abstract

Partitioning a data set by one or more of its attributes and computing an aggregate for each part is one of the most common operations in data analyses. There are use cases where the partitioning is determined dynamically by collapsing smaller subsets into larger ones, to ensure sufficient support for the computed aggregate. These use cases are not supported by software implementing split-apply-combine types of operations. This paper presents the R package accumulate that offers convenient interfaces for defining grouped aggregation where the grouping itself is dynamically determined, based on user-defined conditions on subsets, and a user-defined subset collapsing scheme. The formal underlying algorithm is described and analyzed as well.

Journal of Statistical SoftwareVol. 112(4)
Centraal Bureau voor de Statistiek (NL)
Openalex Percentile: Top 17%
Embedded Systems Design Techniques
2.27
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Split-Apply-Combine with Dynamic Grouping — Mark P. J. van der Loo · Journal of Statistical Software (2025) | TGRS Research Map | TGRS