Skip to main navigation Skip to main content Skip to page footer

Working Paper

collapse: Advanced and Fast Statistical Computing and Data Transformation in R

Authors

  • Krantz
  • S.

Publication Date

Key Words

statistical computing

vectorization

data manipulation and transformation

summary statistics

class-agnostic programming

R

collapse is a large C/C++-based infrastructure package facilitating complex statistical computing, data transformation, and exploration tasks in R - at outstanding levels of performance and programming efficiency. It also implements a class-agnostic approach to R programming, supporting vector, matrix and data frame-like objects and their popular variants (e.g., factor, ts, xts, tibble, data.table, sf), enabling its seamless integration with large parts of the R ecosystem. This article introduces the package's key components and design principles in a structured way, supported by a rich set of examples. A small benchmark demonstrates its computational performance.

Kiel Institute Expert

  • Sebastian Krantz, Ph.D.
    Kiel Institute Junior Fellow

More Publications

Topics

  • 02.02.2018

    Aerial view of an African village, solar-powered well in the center

    Africa

  • 02.02.2018

    man on street

    China

  • 02.02.2018

    Two women inspect a solar panel

    Climate and Energy

Research Center

  • Research Center

    12.03.2018

    International Development