Description Usage Arguments Value Examples
findLevel
is a wrapper for the findInterval
function
in base R. Given a vector of results x, and a set of thresholds
t1..tn, it returns a vector of levels with the same length as x,
with levels 1 to n+1. The lowest level is 1, and any result acheiving
>=t1 is given level 2, any result acheiving >=t2 is given level 3 and so on.
1 | findLevel(x, thresh)
|
x |
A vector of results to classify. |
thresh |
A vector of minimum level thresholds, sorted increasingly. |
vector of length length(x)
with values 1:(N+1)
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.