duplicated2: Determine all duplicated elements. return TRUE for all...

duplicated2R Documentation

Determine all duplicated elements. return TRUE for all duplicated entries, including the first one of each set.

Description

'duplicated2' returns a logical vector: TRUE for all the duplicated elements, and FALSE for unique elements. Whereas duplicated(), a base function, does not include the first entry of the duplicated set.

Usage

duplicated2(x)

Arguments

x

a vector or a data frame or an array or NULL

Value

A logical vector (TRUE for duplicates and FALSE for non duplicates)


capellett/scutils documentation built on Oct. 20, 2023, 5:38 p.m.