Description Usage Arguments Value Examples
Renumbering vector by elemental frequency in ascending order.
1 2 | # Tidy vector by elemental frequency:
Ascending_Num(data)
|
data |
An 1d-vector. |
return a renumbered vector by elemental frequency. Factors will be positive integers arrayed in ascending order.
1 2 3 4 5 | library(plyr)
x <- c(1,2,2,2,2,2,2,2,3,3,3,1,3,3,3)
x
Ascending_Num(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.