h_all_duplicated: Finding All Duplicates in Vector

View source: R/utils.R

h_all_duplicatedR Documentation

Finding All Duplicates in Vector

Description

The difference here to duplicated() is that also the first occurrence of a duplicate is flagged as TRUE.

Usage

h_all_duplicated(x)

Arguments

x

a vector or a data frame or an array or NULL.

Value

Logical vector flagging all occurrences of duplicate values as TRUE.

Examples

h_all_duplicated(c("a", "a", "b"))
duplicated(c("a", "a", "b"))

insightsengineering/hermes documentation built on Sept. 19, 2024, 9:06 p.m.