lpdensityUnique {lpdensity} | R Documentation |
Internal function.
Description
Find unique elements and their frequencies in a numeric vector. This function
has a similar performance as the built-in R function unique
.
Usage
lpdensityUnique(x)
Arguments
x |
Numeric vector, already sorted in ascending order. |
Value
unique |
A vector containing unique elements in |
freq |
The frequency of each element in |
index |
The last occurrence of each element in |
[Package lpdensity version 2.5 Index]