unique_fmatch: Distinct elements

View source: R/unique_fmatch.R

unique_fmatchR Documentation

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))

Arguments

x

An atomic vector.

nThread

Number of threads to use.

Value

Equivalent to unique(x) or data.table::uniqueN(x) respectively.


hutilscpp documentation built on Oct. 11, 2023, 9:06 a.m.