Learn R Programming

tuple (version 0.4-01)

triplicated: Find Values That Are Repeated At Least Thrice

Description

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

Usage

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

Arguments

x
A vector.
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.
...
Other optional arguments are ignored.

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

Run this code
triplicated(c(NA, 1:3, 3, 4:6, 3, NA, 4, 3))

Run the code above in your browser using DataLab