Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 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 (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-10-04T10:21:26.000Z (about 1 month ago)
- Last Synced: 2024-10-11T18:25:07.809Z (25 days ago)
- Topics: cran, haven, labels, metadata, r, sas, spss, stata
- Language: R
- Homepage: https://larmarange.github.io/labelled/
- Size: 31.3 MB
- Stars: 73
- Watchers: 8
- Forks: 16
- Open Issues: 0
-
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
[![Project Status: Active - The project has reached a stable, usable
state and is being actively
developed.](https://www.repostatus.org/badges/0.1.0/active.svg)](https://www.repostatus.org/#active)
[![Lifecycle:
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/larmarange/labelled/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/larmarange/labelled/actions/workflows/R-CMD-check.yaml)
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/labelled)](https://cran.r-project.org/package=labelled)
[![Downloads](https://cranlogs.r-pkg.org/badges/labelled)](https://cran.r-project.org/package=labelled)
[![DOI](https://www.zenodo.org/badge/38772078.svg)](https://zenodo.org/badge/latestdoi/38772078)
[![Codecov test coverage](https://codecov.io/gh/larmarange/labelled/graph/badge.svg)](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
[![labelled
cheatsheet](https://github.com/larmarange/labelled/raw/main/cheatsheet/labelled_cheatsheet.png)](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.