https://github.com/larmarange/labelled
Manipulating labelled vectors in R
https://github.com/larmarange/labelled
cran haven labels metadata r sas spss stata
Last synced: 11 days ago
JSON representation
Manipulating labelled vectors in R
- Host: GitHub
- URL: https://github.com/larmarange/labelled
- Owner: larmarange
- License: gpl-3.0
- Created: 2015-07-08T18:24:51.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T17:12:03.000Z (2 months ago)
- Last Synced: 2025-03-31T12:57:55.578Z (20 days ago)
- Topics: cran, haven, labels, metadata, r, sas, spss, stata
- Language: R
- Homepage: https://larmarange.github.io/labelled/
- Size: 32.6 MB
- Stars: 76
- Watchers: 7
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - larmarange/labelled - Manipulating labelled vectors in R (R)
README
# labelled
[](https://www.repostatus.org/#active)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://github.com/larmarange/labelled/actions/workflows/R-CMD-check.yaml)
[](https://cran.r-project.org/package=labelled)
[](https://cran.r-project.org/package=labelled)
[](https://zenodo.org/badge/latestdoi/38772078)
[](https://app.codecov.io/gh/larmarange/labelled)This package is built on the new classes `haven_labelled` and
`haven_labelled_spss` introduced by `haven` package to handle labelled
variables imported from SPSS, Stata and SAS. The `labelled` package
propose several functions to manipulate such vectors and their metadata:
variable labels, value labels and user-defined missing values.## Installation & Documentation
To install **stable version**:
```
install.packages("labelled")
```Documentation of stable version:
To install **development version**:
```
remotes::install_github("larmarange/labelled")
```Documentation of development version:
## Introduction
Read the vignette at
## Cheatsheet
[](https://github.com/larmarange/labelled/raw/main/cheatsheet/labelled_cheatsheet.pdf)## Some general guidelines
1. Functions are intended to support `labelled` metadata structures
only. However, `to_labelled()` method allows to convert metadata
from **foreign** and **memisc** packages.
2. Functions should, by default, modify metadata only (i.e. classes and
attributes), except if explicitly expressed by the user.