View source: R/rddensity_fun.R
rddensityUnique | R Documentation |
Find unique elements and their frequencies in a numeric vector. This function
has a similar performance as the built-in R function unique
.
rddensityUnique(x)
x |
Numeric vector, already sorted in ascending order. |
unique |
A vector containing unique elements in |
freq |
The frequency of each element in |
index |
The last occurrence of each element in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.