isNA.RdA value vector in the key will generally be a character vector. This utility is used to check if the characters are either R missing or values in a list of characters that represent missings.
isNA(x, na.strings = c("\\.", "", "\\s+", "N/A"))Logical vector, TRUE if a value is either NA or in na.strings.
x1 <- c("TRUE", "FALSE", FALSE, TRUE, NA, "NA", ".", "N/A", " ", "")
x1na <- kutils:::isNA(x1)
cbind(x1, x1na)
#> x1 x1na
#> [1,] "TRUE" "FALSE"
#> [2,] "FALSE" "FALSE"
#> [3,] "FALSE" "FALSE"
#> [4,] "TRUE" "FALSE"
#> [5,] NA "TRUE"
#> [6,] "NA" "FALSE"
#> [7,] "." "TRUE"
#> [8,] "N/A" "TRUE"
#> [9,] " " "TRUE"
#> [10,] "" "TRUE"