codebook: Automatic Codebooks from Survey Metadata Encoded in Attributes

Easily automate the following tasks to describe data frames: summarise the distributions of scales and items graphically and using descriptive statistics, compute reliabilities (internal consistencies, retest, multilevel) for psychological scales, combine this information with metadata (such as item labels and labelled values) that is derived from R attributes. To do so, the package relies on 'rmarkdown' partials, so you can generate HTML, PDF, and Word documents. Codebooks are also available as tables (CSV, Excel, etc.). The metadata and codebooks are also available at your fingertips via RStudio Addins.

Version: 0.6.3
Depends: R (≥ 3.0.1)
Imports: stats, methods, graphics, utils, rmarkdown, ggplot2 (≥ 2.0.0), stringr, psych, likert, knitr, rlang, dplyr, tidyr, pander, skimr (≥ 1.0.2), DT, future, haven, mice (≥ 3.2.0), tibble, purrr, htmltools, labeling, labelled, rio, shiny (≥ 0.13), miniUI (≥ 0.1.1), rstudioapi (≥ 0.5)
Suggests: testthat, shinytest, lme4, roxygen2
Published: 2018-08-01
Author: Ruben Arslan [aut, cre]
Maintainer: Ruben Arslan <ruben.arslan at>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: codebook citation info
Materials: README NEWS
CRAN checks: codebook results


Reference manual: codebook.pdf
Vignettes: Example with metadata from
Example with manual labelling
Example with nested scales
Example with Qualtrics dataset
Example with SPSS dataset
Package source: codebook_0.6.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
OS X binaries: r-release: codebook_0.6.3.tgz, r-oldrel: codebook_0.6.3.tgz
Old sources: codebook archive


Please use the canonical form to link to this page.