cons.rank | R Documentation |
Ranks a vector such that ranks are always 1 apart if they succeed each other or 0 apart if they are tied.
cons.rank(x)
x |
A numeric vector. |
An integer vector of the same length as x
.
Sercan Kahveci
testvec <- c(0,2,3,3,7,9,9,0)
cons.rank(testvec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.