labelled (version 2.2.1)

val_labels_to_na: Recode value labels to NA

Description

For labelled variables, values with a label will be recoded to NA.

Usage

val_labels_to_na(x)

Arguments

x

Object to recode.

...

Other arguments passed down to method.

See Also

zap_labels

Examples

Run this code
# NOT RUN {
v <- labelled(c(1, 2, 9, 1, 9), c(dk = 9))
val_labels_to_na(v)
# }

Run the code above in your browser using DataCamp Workspace