powered by
Finds values in a vector directly above and below a number
casing(x, into)
a number
a vector where to find the values directly above and below x
a vector of the values of "into" vector directly above and below x respectively
Similar function : encase
encase
# NOT RUN { casing(0.21,c(0.3,0.4,0.1,0.2)) # }
Run the code above in your browser using DataLab