val_labels_to_na: Recode value labels to NA

View source: R/to_na.R

val_labels_to_naR Documentation

Recode value labels to NA

Description

For labelled variables, values with a label will be recoded to NA.

Usage

val_labels_to_na(x)

Arguments

x

Object to recode.

See Also

haven::zap_labels()

Examples

v <- labelled(c(1, 2, 9, 1, 9), c(dk = 9))
val_labels_to_na(v)

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