isUndefined | R Documentation |
You can pass multiple variable, which are all checked. If any of them is undefined, the function returns TRUE
isUndefined(s, ..., verbose = TRUE, context = NULL)
s |
A variable to be checked for NA/NULL |
... |
More variable to be checked |
verbose |
If TRUE and 's' is NULL/NA, will print the name of the variable which was passed in |
context |
An optional string will be using within a warning message, to ease tracking of where in the mzQC structure the undefined value occurs |
isUndefined(NA) ## TRUE
isUndefined(NULL) ## TRUE
isUndefined(NA, NULL) ## TRUE
isUndefined("") ## FALSE
isUndefined(list(1,2,3)) ## FALSE
isUndefined("", NA) ## TRUE
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.