R 中高级且快速的数据转换
collapse is a large C/C++-based package for data transformation and statistical computing in R. It aims to:
Its novel class-agnostic architecture supports all basic R objects and their popular extensions, including units, integer64, xts/zoo, tibble, grouped_df, data.table, sf, pseries and pdata.frame.
Key Features:
Advanced statistical programming: A full set of fast statistical functions supporting grouped and weighted computations on vectors, matrices and data frames. Fast and programmable grouping, ordering, matching, deduplication, factor generation and interactions.
Fast data manipulation: Fast and flexible functions for data manipulation, data object conversions and memory efficient R programming.
Advanced aggregation: Fast and easy multi-type, weighted and parallelized data aggregation.
Advanced transformations: Fast row/column arithmetic, (grouped) sweeping out of statistics (by reference), (grouped, weighted) scaling and (higher-dimensional) centering and averaging.
Advanced time-computations: Fast and flexible indexed time series and panel data classes, lags/leads, differences and (compound) growth rates on (irregular) time series and panels, panel-autocorrelation functions and panel data to array conversions.
List processing: Recursive list search, filtering, splitting, apply and unlisting to data frame.
Advanced data exploration: Fast (grouped, weighted, multi-level) descriptive statistical tools.
collapse is written in C and C++, with algorithms much faster than base R's, has extremely low evaluation overheads, scales well (benchmarks: linux | windows), and excels on complex statistical tasks.
…collapse installs with a built-in structured documentation, implemented via a set of separate help pages. Calling help('collapse-documentation') brings up the the top-level documentation page, providing an overview of the entire package and links to all other documentation pages.
In addition there are several vignettes, among them one on Documentation and Resources.
The collapse article is published in the Journal of Statistical Software (volume 116, issue 1). It is the primary reference for academic use of the package and a concise introduction to its design and capabilities.
This provides a simple set of examples introducing some important features of collapse. It should be easy to follow for readers familiar with R.
Click here to expand
…@article{krantz2026collapse, title = {{collapse}: Advanced and Fast Statistical Computing and Data Transformation in {R}}, author = {Sebastian Krantz}, journal = {Journal of Statistical Software}, year = {2026}, volume = {116}, number = {1}, pages = {1--38}, doi = {10.18637/jss.v116.i01}, }
For a full proper citation also cite the current R package version using `citation("collapse")`.暂无开放 Issues,或尚未同步最近议题。