collapse: Advanced and Fast Data Transformation
A large C/C++-based package for advanced data transformation and
statistical computing in R that is extremely fast, class-agnostic, robust, and
programmer friendly. Core functionality includes a rich set of S3 generic grouped
and weighted statistical functions for vectors, matrices and data frames, which
provide efficient low-level vectorizations, OpenMP multithreading, and skip missing
values by default. These are integrated with fast grouping and ordering algorithms
(also callable from C), and efficient data manipulation functions. The package also
provides a flexible and rigorous approach to time series and panel data in R, fast
functions for data transformation and common statistical procedures, detailed
(grouped, weighted) summary statistics, powerful tools to work with nested data,
fast data object conversions, functions for memory efficient R programming, and
helpers to effectively deal with variable labels, attributes, and missing data. It
seamlessly supports base R objects/classes as well as 'units', 'integer64', 'xts'/
'zoo', 'tibble', 'grouped_df', 'data.table', 'sf', and 'pseries'/'pdata.frame'.
For a concise overview of the package see Krantz (2026) <doi:10.18637/jss.v116.i01>.
| Version: |
2.1.7 |
| Depends: |
R (≥ 4.1.0) |
| Imports: |
Rcpp (≥ 1.0.1) |
| LinkingTo: |
Rcpp |
| Suggests: |
fastverse, data.table, magrittr, kit, xts, zoo, plm, fixest, vars, RcppArmadillo, RcppEigen, tibble, dplyr, ggplot2, scales, microbenchmark, testthat, covr, knitr, rmarkdown, withr, bit64 |
| Published: |
2026-05-19 |
| DOI: |
10.32614/CRAN.package.collapse |
| Author: |
Sebastian Krantz
[aut, cre],
Matt Dowle [ctb],
Arun Srinivasan [ctb],
Morgan Jacob [ctb],
Dirk Eddelbuettel [ctb],
Laurent Berge [ctb],
Kevin Tappe [ctb],
Alina Cherkas [ctb],
Ivan Krylov [ctb],
R Core Team and contributors worldwide [ctb],
Martyn Plummer [cph],
1999-2016 The R Core Team [cph] |
| Maintainer: |
Sebastian Krantz <sebastian.krantz at graduateinstitute.ch> |
| BugReports: |
https://github.com/fastverse/collapse/issues |
| License: |
GPL-2 | GPL-3 | file LICENSE [expanded from: GPL (≥ 2) | file LICENSE] |
| URL: |
https://fastverse.org/collapse/,
https://github.com/fastverse/collapse |
| NeedsCompilation: |
yes |
| Citation: |
collapse citation info |
| Materials: |
NEWS |
| In views: |
Econometrics, OfficialStatistics, TimeSeries |
| CRAN checks: |
collapse results |
Documentation:
Downloads:
Reverse dependencies:
| Reverse depends: |
multistateQTL |
| Reverse imports: |
adrftools, africamonitor, amadeus, aorsf, blocs, blvim, bsitar, casimir, cheapr, chopin, cohortBuilder, dcce, deduped, DepecheR, dfadjust, dfms, dggridR, DisImpact, dream, effectplots, fastdid, fastplyr, fastverse, flownet, FuncDiv, havel, ife, joyn, maaslin3, mcmcsae, mhpfilter, mooplot, myrror, optweight, osmclass, penppml, PiC, plm, plssem, qol, QTLExperiment, samadb, seqHMM, SGP, slideimp, spada, syncdr, timeplyr, ugatsdb, versus, zoomerjoin |
| Reverse suggests: |
arcgisutils, bayestestR, ctsem, easystats, imagefluency, labelr, marginaleffects, modelbased, mvgam, ordbetareg, report, robscale, see, tinycodet, VetResearchLMM, VizTest |
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=collapse
to link to this page.