sjlabelled v1.1.1

0

Monthly downloads

0th

Percentile

Labelled Data Utility Functions

Collection of functions dealing with labelled data, like reading and writing data between R and other statistical software packages like 'SPSS', 'SAS' or 'Stata', and working with labelled data. This includes easy ways to get, set or change value and variable label attributes, to convert labelled vectors into factors or numeric (and vice versa), or to deal with multiple declared missing values.

Readme

sjlabelled - Labelled Data Utility Functions

CRAN_Status_Badge    Documentation    downloads    total

This package contains utility functions that are useful when working with labelled data (especially intended for people coming from 'SPSS', 'SAS' or 'Stata' and/or who are new to R).

Basically, this package covers reading and writing data between other statistical packages (like 'SPSS') and R, based on the haven and foreign packages; hence, this package also includes functions to make working with labelled data easier. This includes easy ways to get, set or change value and variable label attributes, to convert labelled vectors into factors or numeric (and vice versa), or to deal with multiple declared missing values.

Installation

Latest development build

To install the latest development snapshot (see latest changes below), type following commands into the R console:

library(devtools)
devtools::install_github("strengejacke/sjlabelled")

Officiale, stable release

To install the latest stable release from CRAN, type following command into the R console:

install.packages("sjlabelled")

Citation

In case you want / have to cite my package, please use citation('sjlabelled') for citation information.

DOI

Functions in sjlabelled

Name Description
get_na Retrieve tagged NA values of labelled variables
zap_na_tags Convert tagged NA values into regular NA
drop_labels Drop, add or convert (non-)labelled values
write_spss Write data to other statistical software packages
get_term_labels Retrieve labels of model terms from regression models
reexports Objects exported from other packages
read_spss Import data from other statistical software packages
remove_all_labels Remove value and variable labels from vector or data frame
remove_label Remove variable labels from variables
get_labels Retrieve value labels of labelled data
is_labelled Check whether object is of class "labelled"
set_label Add variable label(s) to variables
sjlabelled-package Labelled Data Utility Functions
set_na Replace specific values in vector with NA
get_values Retrieve values of labelled variables
set_labels Add value labels to variables
tidy_labels Repair value labels
unlabel Convert labelled vectors into normal classes
as_factor Convert variable into factor and keep value labels
as_labelled Convert vector to labelled class
copy_labels Copy value and variable labels to (subsetted) data frames
get_label Retrieve variable label(s) of labelled data
efc Sample dataset from the EUROFAMCARE project
as_label Convert variable into factor with associated value labels
add_labels Add, replace or remove value labels of variables
as_numeric Convert factors to numeric variables
convert_case Generic case conversion for labels
No Results!

Vignettes of sjlabelled

Name
intro_sjlabelled.Rmd
labelleddata.Rmd
quasiquotation.Rmd
No Results!

Last month downloads

Details

Type Package
Encoding UTF-8
Date 2019-09-13
License GPL-3
URL https://strengejacke.github.io/sjlabelled
BugReports https://github.com/strengejacke/sjlabelled/issues
RoxygenNote 6.1.1
VignetteBuilder knitr
NeedsCompilation no
Packaged 2019-09-13 11:55:58 UTC; Daniel
Repository CRAN
Date/Publication 2019-09-13 13:00:02 UTC

Include our badge in your README

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