Learn R Programming

tidytable (version 0.11.1)

na_if: 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

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

Run the code above in your browser using DataLab