service.is.param_possible: Service functions for data check which could be applied in...

Description Usage Arguments Details Value Examples

View source: R/service.general.R

Description

Service functions for data check which could be applied in any function of the package or externally

Usage

1
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

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

kidney.epi documentation built on March 13, 2020, 3:16 a.m.