replace_with_na: Detect and replace values with 'NA' from a vector

View source: R/replace_missing_values.R

replace_with_naR Documentation

Detect and replace values with NA from a vector

Description

Detect and replace values with NA from a vector

Usage

replace_with_na(x, na_strings)

Arguments

x

A <vector> of numeric or character values

na_strings

A <vector> of the values to be replaced

Value

A <vector> where the specified values were replaced with NA if found.


cleanepi documentation built on April 4, 2025, 5:12 a.m.