triplicated {tuple} | R Documentation |
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. |
... |
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 |
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
Examples
triplicated(c(NA, 1:3, 3, 4:6, 3, NA, 4, 3))
[Package tuple version 0.4-02 Index]