Description Usage Arguments Details Value Examples
View source: R/service.general.R
Service functions for data check which could be applied in any function of the package or externally
1 | service.is.param_possible(param2check, possible_params)
|
param2check |
Numeric value or character string. The single value to be verified. |
possible_params |
Vector. The vector of values which contains all possible values. |
Verifies whether the single value is among the values of the vector. Function is useful to check whether the argument of the function defined by the user is among the possible arguments recognized inside the function.
Programming: Boris Bikbov boris@bikbov.ru.
logic returns TRUE if argument param2check is foundin possible values possible_params, and FALSE if it is not.
1 2 3 | possible_params = c("KDPI", " KDRI_Rao", "KDRI_median")
service.is.param_possible("KDZO", possible_params) # return FALSE
service.is.param_possible("KDPI", possible_params) # return TRUE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.