duplicated: Find duplicates in a vector

duplicated.lvecR Documentation

Find duplicates in a vector

Description

Find duplicates in a vector

Usage

## S3 method for class 'lvec'
duplicated(x, incomparables = FALSE, fromLast = FALSE, ...)

## S3 method for class 'lvec'
unique(x, incomparables = FALSE, ...)

Arguments

x

an object of type lvec.

incomparables

passed on to link{duplicated}.

fromLast

not supported.

...

passed on to duplicated.

Details

Because this function works on chunks of data the data first needs to be sorted. Since a non stable sort is used, which of the duplicates is marked as duplicate is undefined. This is unlike the regular duplicated in which fromLast determines which records are marked as duplicates.

The function processes the data in chunks. The size of the chunks can be controlled using the option 'chunk_size' (see chunk).


djvanderlaan/ldat documentation built on Oct. 4, 2022, 7:01 p.m.