Description Usage Arguments Details
View source: R/utils-validation.R
Check if a value is NULL. If NULL and required, returns error message.
if not required, forces a return of NA. If not NULL, returns val
.
1 | validParam(val, param, required = FALSE, as.numeric = FALSE)
|
val |
R object. |
param |
string. |
required |
boolean, defaults to FALSE |
as.numeric, |
defaults to FALSE |
Checks for valid parameter
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.