triplicated {tuple} | R Documentation |
Finds values that are repeated at least three times in a vector.
triplicated(x, ..., fromLast = FALSE)
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 |
Returns a logical vector that is TRUE
when it runs into
any but the first or second occurrences of a value, analogous
to duplicated
.
triplicated(c(NA, 1:3, 3, 4:6, 3, NA, 4, 3))