labelled v1.0.1

0

Monthly downloads

0th

Percentile

Manipulating Labelled Data

Work with labelled data imported from 'SPSS' or 'Stata' with 'haven' or 'foreign'.

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

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

Labelled package for R

This package is built on the new class labelled introduced by haven package and propose additional functions to manipulate labelled data.

Please note that this package is still under active development.

Missing values are currently not supported anymore by labelled package.

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
nolabel_to_na Recode values with no label to NA
na_values Get / Set SPSS missing values
remove_labels Remove variable label, value labels and user defined missing values
labelled_spss Create a labelled vector with SPSS style of missing values.
as.data.frame.labelled as.data.frame method for labelled vectors
labelled Create a labelled vector.
copy_labels Copy variable and value labels
var_label Get / Set a variable label
sort_val_labels Sort value labels
to_character Convert input to a character vector
to_factor Convert input to a factor.
to_labelled Convert to labelled data
val_labels Get / Set value labels
val_labels_to_na Recode value labels to NA
mean.labelled Arithmetic mean for numeric labelled vectors
No Results!

Vignettes of labelled

Name
intro_labelled.Rmd
intro_labelled.md
No Results!

Last month downloads

Details

Type Package
Date 2017-12-19
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.0.1
NeedsCompilation no
Packaged 2017-12-19 10:28:04 UTC; Larmarange
Repository CRAN
Date/Publication 2017-12-19 20:25:20 UTC

Include our badge in your README

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