Learn R Programming

tidytable (version 0.8.0)

na_if.: Convert values to NA

Description

Convert values to NA.

Usage

na_if.(x, y)

Arguments

x

An R object

y

Value(s) to replace with NA

Examples

Run this code
vec <- 1:3
na_if.(vec, 3)

Run the code above in your browser using DataLab