Manipulating Labelled Data
Copy variable and value labels and SPSS-style missing value
Drop unused value labels
Check if a factor is prefixed
Look for keywords variable names and descriptions / Create a data dict...
Get / Set SPSS missing values
Turn a named vector into a vector of names prefixed by values
Recode values with no label to NA
Recode some values based on condition
Recode values
Objects exported from other packages
Remove attributes
Remove variable label, value labels and user defined missing values
Sort value labels
Convert tagged NAs into user NAs
Datasets for testing
Convert input to a character vector
Convert input to a factor.
Convert to labelled data
Unique elements, duplicated, ordering and sorting with tagged NAs
Update labelled data to last version
Update variable/value labels with a function
Recode value labels to NA
Get / Set value labels
Get / Set a variable label
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.
Useful links