labelr: Label Data Frames, Variables, and Values

Create and use data frame labels for data frame objects (frame labels), their columns (name labels), and individual values of a column (value labels). Value labels include one-to-one and many-to-one labels for nominal and ordinal variables, as well as numerical range-based value labels for continuous variables. Convert value-labeled variables so each value is replaced by its corresponding value label. Add values-converted-to-labels columns to a value-labeled data frame while preserving parent columns. Filter and subset a value-labeled data frame using labels, while returning results in terms of values. Overlay labels in place of values in common R commands to increase interpretability. Generate tables of value frequencies, with categories expressed as raw values or as labels. Access data frames that show value-to-label mappings for easy reference.

Version: 0.1.4
Depends: R (≥ 4.0.0)
Imports: stats, utils
Suggests: knitr, rmarkdown, car, nycflights13, collapse, tibble, haven, dplyr, modelr, ggplot2
Published: 2024-04-02
Author: Robert Hartman [aut, cre], The MITRE Corporation [cph]
Maintainer: Robert Hartman <rohartman at>
License: GPL (≥ 3)
NeedsCompilation: no
Materials: README NEWS
CRAN checks: labelr results


Reference manual: labelr.pdf
Vignettes: Labelr - An Introduction
Labelr - Special Topics


Package source: labelr_0.1.4.tar.gz
Windows binaries: r-prerel:, r-release:, r-oldrel:
macOS binaries: r-prerel (arm64): labelr_0.1.4.tgz, r-release (arm64): labelr_0.1.4.tgz, r-oldrel (arm64): labelr_0.1.4.tgz, r-prerel (x86_64): labelr_0.1.4.tgz, r-release (x86_64): labelr_0.1.4.tgz
Old sources: labelr archive


Please use the canonical form to link to this page.