Missing Data from sas7bdat imported datesets could be imported in different ways we currently check for 'NA', NA, '.', and ”.

is_sas_na(x)

Arguments

x

vector with data

Value

logical vector

Examples

is_sas_na(c(1,2,NA))
#>     1     2  <NA> 
#> FALSE FALSE  TRUE 

is_sas_na(c("a", NA, "NA", ""))
#>     a  <NA>    NA       
#> FALSE  TRUE  TRUE  TRUE