service.strict_to_numeric_threshhold_greater: Select only numeric values lower than defined threshhold

Description Usage Arguments Details Value Examples

View source: R/service.general.R

Description

Select only numeric values lower than defined threshhold

Usage

1

Arguments

x

the vector to be checked.

threshhold

numeric the threshhold to compare with.

Details

Select only numeric values lower than defined threshhold, and substitute other values with NA.

Programming: Boris Bikbov boris@bikbov.ru.

Value

numeric returns only numeric values lower than threshhold.

Examples

1
2
3
4
5
myvals <- c(1, 8, -5, "oggi", NA)
# ruturn to myvals2 only numeric values lower than threshhold  (3 in this case)
#   susbstitute non-numeric or negative values with NA
myvals2 <- service.strict_to_numeric_threshhold_greater(myvals, 3)
myvals2 # 1, NA, -5, NA, NA

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