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)

larmarange/labelled documentation built on Oct. 11, 2024, 6:25 p.m.