Standardize empty strings (""), character NAs ("NA"), and NULL values inside a character vector to NA_character_. Other atomic data types are returned unmodified.

sanitizeNA(object, ...)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object. Sanitized to contain proper NA values.

Examples

class(sanitizeNA)
#> [1] "nonstandardGenericFunction" #> attr(,"package") #> [1] "methods"