heaven: Fast Data Preparation for Danish Registry Data

Prepares and analyses large Danish administrative and health registry datasets. Provides memory-efficient routines for cohort construction, time splitting, code-based condition identification, prescription exposure periods, risk-set matching, and direct standardisation. The package is designed for secure research environments such as Statistics Denmark and builds on the data structures provided by the 'data.table' package.

Version: 2026.10.30
Depends: R (≥ 3.5.0)
Imports: data.table (≥ 1.9.6), stats, parallel, foreach, utils, Rcpp (≥ 1.0.14), lava, lubridate, tools
LinkingTo: Rcpp, RcppArmadillo
Suggests: arrow, dplyr, ggplot2, scales, zoo, testthat, doParallel, survival, Publish, sas7bdat, prodlim, riskRegression, knitr, rmarkdown
Published: 2026-11-20
DOI: 10.32614/CRAN.package.heaven (may not be active yet)
Author: Christian Tobias Torp-Pedersen [aut, cre], Helene Charlotte Rytgaard [aut], Anders Munch [aut], Matthew David Phelps [aut], Thomas Alexander Gerds [aut]
Maintainer: Christian Tobias Torp-Pedersen <ctp at heart.dk>
BugReports: https://github.com/tagteam/heaven/issues
License: GPL (≥ 3)
URL: https://github.com/tagteam/heaven
NeedsCompilation: yes
Materials: README
CRAN checks: heaven results

Documentation:

Reference manual: heaven.html , heaven.pdf
Vignettes: R on DST (source, R code)

Downloads:

Package source: heaven_2026.10.30.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=heaven to link to this page.