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
Description
Service functions for data check which could be applied in any function of the package or externally
Usage
service.is.param_possible(param2check, possible_params)
Arguments
param2check |
Numeric value or character string. The single value to be verified. |
possible_params |
Vector. The vector of values which contains all possible values. |
Details
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.
Value
logic returns TRUE if argument param2check is foundin possible values possible_params, and FALSE if it is not.
Examples
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
[Package kidney.epi version 1.2.0 Index]