isUndefined(NA) ## TRUE
isUndefined(NULL) ## TRUE
isUndefined(NA, NULL) ## TRUE
isUndefined("") ## FALSE
isUndefined("", NA) ## TRUE
isUndefined(1) ## FALSE
myVar = NA
isUndefined(myVar) ## TRUE, with warning "variable 'myVar' is NA/NULL!"
Run the code above in your browser using DataLab