service.is.param_possible {kidney.epi} | R Documentation |
Service functions for data check which could be applied in any function of the package or externally
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.
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