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: about 2 months ago
JSON representation

Manipulating labelled vectors in R

Lists

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/branch/main/graph/badge.svg)](https://app.codecov.io/gh/larmarange/labelled?branch=main)

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.