service.strict_to_numeric_threshhold_lower {kidney.epi} | R Documentation |
Select only numeric values greater than defined threshhold.
service.strict_to_numeric_threshhold_lower(x, threshhold)
x |
the vector to be checked. |
threshhold |
numeric the threshhold to compare with. |
Select only numeric values greater than defined threshhold, and substitute other values with NA.
Programming: Boris Bikbov boris@bikbov.ru.
numeric returns only numeric values greater than threshhold.
myvals <- c(1, 8, -5, "oggi", NA)
# ruturn to myvals2 only numeric values greater than defined threshhold (0 in this case)
# and susbstitute non-numeric or negative values with NA
myvals2 <- service.strict_to_numeric_threshhold_lower(myvals, 0)
myvals2 # 1, 8, NA, NA, NA