Recode values with no label to NA
For labelled variables, values with no label will be recoded to NA
.
nolabel_to_na(x)
x |
Object to recode. |
v <- labelled(c(1, 2, 9, 1, 9), c(yes = 1, no = 2)) nolabel_to_na(v)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.