Manipulating variable labels

Functions to set, manipulate and remove variable labels

var_label() `var_label<-`() set_variable_labels()

Get / Set a variable label

remove_labels() remove_var_label() remove_val_labels() remove_user_na()

Remove variable label, value labels and user defined missing values

copy_labels() copy_labels_from()

Copy variable and value labels and SPSS style missing value

look_for() lookfor()

Look for keywords variable names and descriptions

Manipulating value labels

Functions to set, manipulate and remove value labels

labelled() is.labelled()

Create a labelled vector.

val_labels() `val_labels<-`() val_label() `val_label<-`() set_value_labels() add_value_labels() remove_value_labels()

Get / Set value labels

remove_labels() remove_var_label() remove_val_labels() remove_user_na()

Remove variable label, value labels and user defined missing values

sort_val_labels()

Sort value labels

val_labels_to_na()

Recode value labels to NA

nolabel_to_na()

Recode values with no label to NA

copy_labels() copy_labels_from()

Copy variable and value labels and SPSS style missing value

Manipulating SPSS style missing values

Functions to set, manipulate and remove SPSS style missing values

labelled_spss()

Create a labelled vector with SPSS style of missing values.

na_values() `na_values<-`() na_range() `na_range<-`() set_na_values() set_na_range() user_na_to_na()

Get / Set SPSS missing values

copy_labels() copy_labels_from()

Copy variable and value labels and SPSS style missing value

remove_labels() remove_var_label() remove_val_labels() remove_user_na()

Remove variable label, value labels and user defined missing values

Tagged missing values

tagged_na() na_tag() is_tagged_na() format_tagged_na() print_tagged_na()

"Tagged" missing values

Converting

Functions to convert from and to labelled classes

to_character()

Convert input to a character vector

to_factor()

Convert input to a factor.

to_labelled() foreign_to_labelled() memisc_to_labelled()

Convert to labelled data

update_labelled()

Update labelled data to version 2.0.0

Other functions and methods

mean(<haven_labelled>)

Arithmetic mean for numeric labelled vectors

recode(<haven_labelled>)

Recode values

remove_attributes()

Remove attributes