rddensityUnique: Internal function.

Description Usage Arguments Value

View source: R/rddensity_fun.R

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

1

Arguments

x

Numeric vector, already sorted in ascending order.

Value

unique

A vector containing unique elements in x.

freq

The frequency of each element in x.

index

The last occurrence of each element in x.


rddensity documentation built on March 4, 2021, 9:09 a.m.