⚠️There's a newer version (2.12.0) of this package. Take me there.

Online documentation: http://larmarange.github.io/labelled/

Labelled package for R

This package is built on the new classes haven_labelled and haven_labelled_spss introduced by haven package and propose additional functions to manipulate such labelled data.

BREAKING CHANGES

Following version 2.0.0 of haven, labelled() and labelled_spss() now produce objects with class "haven_labelled" and "haven_labelled_spss", due to conflict between the previous "labelled" class and the "labelled" class used by Hmisc.

A new function update_labelled() could be used to convert data imported with an older version of haven to the new classes.

Installation

From CRAN:

install.packages("labelled")

Latest version from GitHub:

devtools::install_github("larmarange/labelled")

Introduction to labelled

Read http://larmarange.github.io/labelled/articles/intro_labelled.html

Some general principles

  1. Functions are intented 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.

Copy Link

Version

Down Chevron

Install

install.packages('labelled')

Monthly Downloads

143,932

Version

2.0.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

January 18th, 2019

Functions in labelled (2.0.2)