Label Data Frames, Variables, and Values
Overview
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.
- fixed
smerge()bug introduced by Base R changes to set operation behavior.
From NEWS.md in the release
Install
Health
NOTEDESCRIPTION meta-informationr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
‘as_base_data_frame.R’ ‘as_base_data_frame2.R’
‘as_labeled_data_frame.R’ ‘irregular2.R’r-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64
Missing dependency on R >= 4.1.0 because package code uses the pipe
|> or function shorthand \(...) syntax added in R 4.1.0.
File(s) using such syntax:
'as_base_data_frame.R' 'as_base_data_frame2.R'
'as_labeled_data_frame.R' 'irregular2.R'- NOTE13 NOTE2026-06-09
- ERROR12 NOTE, 1 ERROR2026-06-08
- NOTE3 OK, 11 NOTE2026-03-10
Documentation
- Help pages
- 91
- Examples that run
- 100%91 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 0%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 14
Stars over time
Forks over time
Issues over time
PRs over time
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/rhartmano/labelr on 2026-10-22.
Dependencies
Installing labelr adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.1.9Latest
- 0.1.82024-08-27 · diff ↗
- 0.1.7
- 0.1.6
- 0.1.5
- RR 4.4.0 released · 2024-04-24
- 0.1.42024-04-02 · diff ↗ ·
added 12 exports
all_uniquev, all_univ, get_val_lab1, gvl1, h11l, has_avl_labs, has_m1_labs, has_quant_labs, has_val_labs, hm1l, hql, hvl - 0.1.32024-02-21 · diff ↗ ·
added 17 exports
add_lab_col1, add_lab_dumm1, add_lab_dummies, alb, alc, alc1, ald, ald1, all_quant_labs, allq, axis_lab, f2int, factor_to_lab_int, int2f, lab_int_to_factor, use_val_lab1, uvl1 - 0.1.22024-01-23
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2024-01-23
- Total releases
- 8 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 296 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("labelr")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.