unique_fmatch: Distinct elements
Description
Using the fastmatch hash functions, determine
the unique elements of a vector, and the number of distinct elements.
Usage
unique_fmatch(x, nThread = getOption("hutilscpp.nThread", 1L))uniqueN_fmatch(x, nThread = getOption("hutilscpp.nThread", 1L))
Value
Equivalent to unique(x) or data.table::uniqueN(x) respectively.
Arguments
- x
An atomic vector.
- nThread
Number of threads to use.