isUndefined | R Documentation |
You can pass multiple strings, which are all checked. If any of them is undefined, the function returns TRUE
isUndefined(s, ..., verbose = TRUE)
s |
A string to be checked for NA/NULL |
... |
More strings to be checked |
verbose |
If TRUE and 's' is NULL/NA, will print the name of the variable which was passed in |
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!"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.