Skip to content

amusuqing/labelled

 
 

Repository files navigation

labelled

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Lifecycle: stable R build status CRAN_Status_Badge Downloads DOI Codecov test coverage

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

From CRAN:

install.packages("labelled")

Development version from GitHub:

devtools::install_github("larmarange/labelled")

Introduction

Read the vignette at https://larmarange.github.io/labelled/articles/intro_labelled.html

Cheatsheet

labelled cheatsheet

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.

About

Manipulating labelled vectors in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%