Produce Standard/Formalized Demographics Tables

Augment clinical data with metadata to create output used in conventional publications and reports.

Produce standard/formalized demographics tables

Clinical researchers often need to document and report the demographics of all consented subjects. A common use case is for reporting to funding agencies, including the National Institutes of Health (NIH). The NIH requires a particular format for the PHS Inclusion Enrollment Report in each annual Research Performance Progress Report (RPPR).

The codified package, in combination with the REDCapR package, provides a pipeline to directly extract the demographics of consented subjects from a REDCap database, and to rapidly and reproducibly produce standard demographics tables. This pipeline is demonstrated in the vignette, NIH Enrollment Tables in HTML.

The development version can be installed from GitHub after installing the devtools package.

install.packages("devtools") # Run this line if the 'devtools' package isn't installed already.

In the future, the release version can be installed from CRAN.

# install.packages("codified") # CRAN submissions are disabled the first week of Sept 2018.

The package can be uninstalled from your local machine with remove.packages("codified").

Build Status and Package Characteristics

GitHub Travis-CI AppVeyor Coveralls
Master Build Status Build status Coverage Status
Dev Build Status Build status Coverage Status
Ubuntu LTS Windows Server Test Coverage
Key Value
License License: MIT
Development Doc Rdoc
Zenodo Archive DOI
<!-- CRAN Version
Production Doc Rdoc



codified 0.2.0

  • added table_nih_enrollment() and table_nih_enrollment_pretty(). #2
  • added nih-enrollment-html vignette. #6
  • started pkgdown site. #7
  • the idea was created by Peter Higgins (@higgi13425) for R/Medicine 2018.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.0 by Will Beasley, 3 years ago,,

Report a bug at

Browse source code at

Authors: Will Beasley [aut, cre] , Peter Higgins [ctb]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports checkmate, dplyr, kableExtra, knitr, magrittr, methods, readr, rlang, tibble, tidyr

Depends on stats

Suggests devtools, REDCapR, rmarkdown, testthat

See at CRAN