triplicate: Find Triplicate Values

Description Usage Arguments Details See Also Examples

Description

Finds values that occur exactly three times in a vector.

Usage

1

Arguments

x

A vector.

Details

Returns the triplicated values in the same order that they would be returned in a call to orphan. This fundamentally differs from triplicated, which returns a logical vector that is TRUE when it runs into any but the first or second occurrences of a value (and is therefore dependent on the direction of testing of the vector).

See Also

duplicate

Examples

1
2
triplicate(c(NA, 1:3, 3, 4:6, 3, NA, 4))
triplicate(c(NA, 1:3, 3, 4:6, 3, NA, 4, 3))

Example output

[1] 3
numeric(0)

tuple documentation built on May 2, 2019, 12:39 a.m.