Description Usage Arguments Value Examples
Check if a vector/list of values given is valid as per the given
validation function. The function will also print a warning
showing the values that are invalid. One can stop the warning
being printed by wrapping the function in the
suppressWarnings
function.
1 |
testData |
The list/vector of values to validate |
testFun |
The validation function to test each value of testData against |
... |
Other parameters to pass on to the testFun |
TRUE/FALSE
1 2 3 4 5 | Rnightlights:::allValid(c("KEZ", "UGA", "RWA", "TZA"), Rnightlights:::validCtryCodes)
Rnightlights:::allValid(c("2012", "2015"), validNlPeriods, "OLS.Y")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.