na_if_in: Extending na_if to replace multiple values with NA

View source: R/na_if_ext.R

na_if_inR Documentation

Extending na_if to replace multiple values with NA

Description

Extending na_if to replace multiple values with NA

Usage

na_if_in(x, y)

na_if_notin(x, y)

Arguments

x

input vector

y

vector of values to replace with NA

Value

modified vector where all instances from 'y' have been replaced with NA

Functions

  • na_if_notin: the logical-not variant

Examples

na_if_in(letters, c("b", "c") )
na_if_notin(letters, c("b", "c") )

stackcon/rngt documentation built on June 17, 2022, 5:29 p.m.