Convert missing value codes to NA

convert_missing_value(v, code, type)

Arguments

v

Vector of values

code

(character) Missing value code

type

(character) Type (class) v should be. Supported types are: "character", "numeric", "datetime"

Value

Vector of values with code replaced by NA in the class of type