labelled
labelled copied to clipboard
Manipulating labelled vectors in R
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
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
Some general guidelines
- Functions are intended to support
labelled
metadata structures only. However,to_labelled()
method allows to convert metadata from foreign and memisc packages. - Functions should, by default, modify metadata only (i.e. classes and attributes), except if explicitly expressed by the user.