replace_with_na {cleanepi}R 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.


[Package cleanepi version 1.1.0 Index]