powered by
For labelled variables, values with a label will be recoded to NA.
NA
val_labels_to_na(x)
Object to recode.
haven::zap_labels()
v <- labelled(c(1, 2, 9, 1, 9), c(dk = 9)) val_labels_to_na(v)
Run the code above in your browser using DataLab