codebook: Automatic Codebooks from Metadata Encoded in Dataset Attributes

Easily automate the following tasks to describe data frames: Summarise the distributions, and labelled missings of variables graphically and using descriptive statistics. For surveys, compute and summarise 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.) and in JSON-LD, so that search engines can find your data and index the metadata. The metadata are also available at your fingertips via RStudio Addins.

Version: 0.9.2
Depends: R (≥ 3.2.0)
Imports: stats, methods, graphics, utils, rmdpartials, forcats (≥ 0.4.0), vctrs (≥ 0.3.0), ggplot2 (≥ 2.0.0), stringr, rlang, dplyr (≥ 1.0.0), tidyr, tidyselect, jsonlite, haven (≥ 2.3.0), purrr, tibble, glue, likert, knitr, skimr (≥ 2.1.0), htmltools, labeling, labelled
Suggests: testthat, DT, shinytest, lme4, rmarkdown, rstudioapi (≥ 0.5), shiny (≥ 0.13), miniUI (≥ 0.1.1), roxygen2, webshot, rio, psych, future, ufs, userfriendlyscience
Published: 2020-06-06
DOI: 10.32614/CRAN.package.codebook
Author: Ruben Arslan [aut, cre]
Maintainer: Ruben Arslan <ruben.arslan at>
License: MIT + file LICENSE
NeedsCompilation: no
Language: en_GB
Citation: codebook citation info
Materials: README NEWS
In views: ReproducibleResearch
CRAN checks: codebook results


Reference manual: codebook.pdf
Vignettes: Using data and metadata
Qualtrics data and metadata
SPSS dataset with metadata


Package source: codebook_0.9.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): codebook_0.9.2.tgz, r-oldrel (arm64): codebook_0.9.2.tgz, r-release (x86_64): codebook_0.9.2.tgz, r-oldrel (x86_64): codebook_0.9.2.tgz
Old sources: codebook archive


Please use the canonical form to link to this page.