na_if: Convert values to 'NA'

View source: R/na_if.R

na_ifR Documentation

Convert values to NA

Description

Convert values to NA.

Usage

na_if(x, y)

Arguments

x

A vector

y

Value to replace with NA

Examples

vec <- 1:3
na_if(vec, 3)

tidytable documentation built on Sept. 11, 2024, 8:05 p.m.