service.count_greater_threshhold {kidney.epi}R Documentation

Count how many values are greater than the defined threshhold.

Description

Count how many values are greater than the defined threshhold.

Usage

service.count_greater_threshhold(x, threshhold)

Arguments

x

the vector to be checked.

threshhold

numeric the threshhold to compare with.

Details

Count how many values are greater than the defined threshhold.

Programming: Boris Bikbov boris@bikbov.ru.

Value

numeric returns number of numeric values greater or equal to the threshhold.

Examples

myvals <- c(1, 8, -5, "oggi", NA)
myvals2 <- service.count_greater_threshhold(myvals, 0)
myvals2 # 2

[Package kidney.epi version 1.2.0 Index]