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

showMethods("sanitizeNA")
#> Function: sanitizeNA (package AcidGenerics) #> <No methods> #>