nolabel_to_na {labelled} | R Documentation |
Recode values with no label to NA
Description
For labelled variables, values with no label will be recoded to NA
.
Usage
nolabel_to_na(x)
Arguments
x |
Object to recode. |
Examples
v <- labelled(c(1, 2, 9, 1, 9), c(yes = 1, no = 2))
nolabel_to_na(v)
[Package labelled version 2.13.0 Index]