triplicated: Find Values That Are Repeated At Least Thrice

Description Usage Arguments Details See Also Examples

Description

Finds values that are repeated at least three times in a vector.

Usage

1
triplicated(x, ..., fromLast = FALSE)

Arguments

x

A vector.

...

Other optional arguments are ignored.

fromLast

A logical indicating if triplication should be considered from the reverse side, i.e., the two last (or rightmost) of identical elements would return FALSE.

Details

Returns a logical vector that is TRUE when it runs into any but the first or second occurrences of a value, analogous to duplicated.

See Also

duplicated

Examples

1
triplicated(c(NA, 1:3, 3, 4:6, 3, NA, 4, 3))

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