labelled v2.0.2

0

Monthly downloads

0th

Percentile

Manipulating Labelled Data

Work with labelled data imported from 'SPSS' or 'Stata' with 'haven' or 'foreign'. This package provides useful functions to deal with "haven_labelled" and "haven_labelled_spss" classes introduced by 'haven' package.

Readme

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status CRAN_Status_Badge downloads Rdoc

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.

Functions in labelled

Name Description
labelled_spss Create a labelled vector with SPSS style of missing values.
to_character Convert input to a character vector
to_factor Convert input to a factor.
na_values Get / Set SPSS missing values
nolabel_to_na Recode values with no label to NA
var_label Get / Set a variable label
remove_labels Remove variable label, value labels and user defined missing values
sort_val_labels Sort value labels
val_labels Get / Set value labels
val_labels_to_na Recode value labels to NA
recode.haven_labelled Recode values
remove_attributes Remove attributes
copy_labels Copy variable and value labels
labelled Create a labelled vector.
to_labelled Convert to labelled data
update_labelled Update labelled data to version 2.0.0
mean.haven_labelled Arithmetic mean for numeric labelled vectors
No Results!

Vignettes of labelled

Name
intro_labelled.Rmd
No Results!

Last month downloads

Details

Type Package
License GPL-3
Encoding UTF-8
LazyData true
URL https://github.com/larmarange/labelled
BugReports https://github.com/larmarange/labelled/issues
VignetteBuilder knitr
RoxygenNote 6.1.1
NeedsCompilation no
Packaged 2019-01-18 10:41:12 UTC; jlarmarange
Repository CRAN
Date/Publication 2019-01-18 11:30:09 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/labelled)](http://www.rdocumentation.org/packages/labelled)