powered by
Find unique elements and their frequencies in a numeric vector. This function has a similar performance as the built-in R function unique.
unique
rddensityUnique(x)
Numeric vector, already sorted in ascending order.
A vector containing unique elements in x.
x
The frequency of each element in x.
The last occurrence of each element in x.