Skip to content

collapse

2.1.7

Advanced and Fast Data Transformation

64packages depend
559.1Kdownloads / year
75.1%test coverage
13/13checks pass

Overview

About
Maintained by Sebastian KrantzFirst published 2020-03-1957 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 14.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 1.21
75.1%
Coverage · measured lines
90%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
85%
Return-value docs
90%
References docs
28%

Downloads

559.1K
CRAN downloads in the past year
Rank #535 · ~1.5K/day · ~46.6K/mo
Daily download trend is not available in this view yet.
39.7K30 days
143K90 days
559.1K1 year
Compare downloads with other packages →
Also on9.7K r2u36 autocran19.1K conda_forge62 c2d4u

Repository

Repository
705Stars
36Forks
16Open issues
3Open PRs
60Releases
3,529Commits
14Contributors
rcranrstatsstatisticsdata-sciencescientific-computingtime-seriespanel-data
3,529 commits · Last activity 2026-07-16 · +0.7% stars, 30d

Stars over time

2025-06-16 · 6802026-07-14 · 705

Repository practices

Upstream repositoryBeta

6 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/fastverse/collapse on 2026-07-19.

Continuous integration (1)
GitHub Actions
Research and citation (1)
CITATION.cff
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
Show all practices
Governance and community (1)
Issue templates
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
24 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (1)
LinkingTo (1)
Enhances (0)
none

Code & Tests

Code Composition
R 30,386 (37%)C 19,557 (24%)Vignettes 11,529 (14%)C++ 9,867 (12%)Rd 9,711 (12%)
Code characteristics
Object systems
S3390
Cyclomatic complexity
2.0 median / 108 max
Test cases
624 / 1.21 per code line

Test coverage

Line coverage

75%

Expression

75.0%

Tests / Examples

75.1% / 49% ex

Functions

1294 322 exported

Complexity

6 avg / 108 max

Call network

1294 nodes / 3312 edges

Loading call graph…

Lowest coverage

1294 functions
FunctionCycloCoverage
GRPN exp80%
GRPid exp60%
as_integer_factor exp70%
copyAttrib exp10%
fHDbetween exp10%
fHDwithin exp10%

Datasets

Bundled datasets · 2
NameClassRows × ColsAlso ships in
GGDC10Stbl_df/tbl/data.frame5,027 × 16
wlddevdata.frame13,176 × 13

People & History

People (12)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (9)
Contributor · added in 1.5.0
Contributor · added in 2.1.0
Contributor
Contributor · added in 1.7.0
Contributor · added in 2.1.6
Contributor
Show 1 more contributors
Contributor · added in 1.4.2
Copyright holders (2)
Copyright holder
Listed in earlier versions (2)
no longer listed · 1.0.0 to 1.4.2
no longer listed · 1.5.0 to 1.7.2
Package Timeline

57 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 2.1.7Latest
    2026-05-19 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.1.6
    2026-01-11 · diff ↗
  • 2.1.5
    2025-11-19 · diff ↗
  • 2.1.4
    2025-10-24 · diff ↗
  • 2.1.3
    2025-08-18 · diff ↗
  • 2.1.2
    2025-05-25 · diff ↗
  • 2.1.1
    2025-04-14 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.1.0
    2025-03-10 · diff ↗
  • 2.0.19
    2025-01-09 · diff ↗
  • 2.0.18
    2024-11-23 · diff ↗
  • 2.0.17
    2024-11-03 · diff ↗
  • 2.0.16
    2024-08-21 · diff ↗
  • 2.0.15
    2024-07-08 · diff ↗
  • 2.0.14
    2024-05-25 · diff ↗
Show 51 earlier events
  • R
    R 4.4.0 released · 2024-04-24
  • 2.0.13
    2024-04-14 · diff ↗
  • 2.0.12
    2024-04-01 · diff ↗
  • 2.0.11
    2024-03-21 · diff ↗
  • 2.0.10
    2024-02-17 · diff ↗
  • 2.0.9
    2024-01-11 · diff ↗
  • 2.0.7
    2023-12-07 · diff ↗
  • 2.0.6
    2023-11-12 · diff ↗
  • 2.0.3
    2023-10-18 · diff ↗
  • 2.0.2
    2023-10-14 · diff ↗
  • 1.9.6
    2023-05-28 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.9.5
    2023-04-07 · diff ↗
  • 1.9.4
    2023-03-31 · diff ↗
  • 1.9.3
    2023-02-27 · diff ↗
  • 1.9.2
    2023-01-25 · diff ↗
  • 1.9.0
    2023-01-15 · diff ↗
  • 1.8.9
    2022-10-07 · diff ↗
  • 1.8.8
    2022-08-15 · diff ↗
  • 1.8.6
    2022-06-14 · diff ↗
  • 1.8.5
    2022-06-13 · diff ↗
  • 1.8.4
    2022-06-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.7.6
    2022-02-11 · diff ↗
  • 1.7.5
    2022-02-03 · diff ↗
  • 1.7.3
    2022-01-26 · diff ↗
  • 1.7.2
    2022-01-23 · diff ↗
  • 1.7.0
    2022-01-14 · diff ↗
  • 1.6.5
    2021-07-24 · diff ↗
  • 1.6.4
    2021-07-13 · diff ↗
  • 1.6.2
    2021-07-04 · diff ↗
  • 1.6.0
    2021-06-28 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.5.3
    2021-03-07 · diff ↗
  • 1.5.2
    2021-03-02 · diff ↗
  • 1.5.1
    2021-01-12 · diff ↗
  • 1.5.0
    2021-01-04 · diff ↗
  • unarchivedReturned to CRAN
    2021-01-04
  • archivedRemoved from CRAN
    2020-12-19
    check problems were not corrected in time
  • 1.4.2
    2020-11-10 · diff ↗
  • 1.4.1
    2020-11-09 · diff ↗
  • 1.4.0
    2020-11-01 · diff ↗
  • 1.3.2
    2020-09-13 · diff ↗
  • 1.3.1
    2020-08-27 · diff ↗
  • 1.3.0
    2020-08-11 · diff ↗
  • 1.2.1
    2020-05-27 · diff ↗
  • 1.2.0
    2020-05-19 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.1.0
    2020-04-01 · diff ↗
  • 1.0.0
    2020-03-19
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2020-03-19
Total releases
57 / 6 yrs
License
GPL (>= 2) | file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
571 KB / 2 files
Download size
1.4 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →