powered by
Function to check the variable null or NA
check_null_na(variable)
name of variable or list of variable to check
-1 or -2 as error, else return 0 as success
# NOT RUN { var = c("a") check_null_na(var) # }
Run the code above in your browser using DataLab