isDefined | R Documentation |
This function checks the value returned from an mdqe xpath selector.
isDefined(variableName, variable = NA, pos = as.integer(1))
variableName |
The name of the variable that contains selected values. |
variable |
The variable that contains selected values. |
pos |
The list element to check. |
This check can be used to test values from a selector that
uses a subSelector. The value returned from this type of selector
is a list that could possibly contain elements that have no defined value, i.e.
the subSelector will return NA
if the xpath it is trying to select is
not present. The 'pos' argument can be used to check a specific value
of such a list.
logical
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.