unique.numeric: Unique Numeric

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Find unique values of a numeric vector

Usage

1

Arguments

x

Numeric vector

Details

A new algorithm for finding the unique values of a numeric vector

It is dispatched to by unique and it calls a c++ function that uses a hash

A little cheating is done since then hash algorithm does not accept float keys. So the vector is converted to character, the character uniqueing is done, then the result is converted back to numeric.

Value

A numeric vector of the unique values www.jaredlander.com

Author(s)

Jared P. Lander

See Also

unique unique.integer unique.character

Examples

1
2
mynum <- c(3.2, 4, 3.20, 7, 8.6, 4, 4, 3)
unique(mynum)

jaredlander/join documentation built on May 18, 2019, 3:46 p.m.