Skip to contents

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.