nolabel_to_na: Recode values with no label to NA

View source: R/to_na.R

nolabel_to_naR 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)

labelled documentation built on May 29, 2024, 9:34 a.m.