
Last chance! 50% off unlimited learning
Sale ends in
findRepeated
gets index of repeated items/values in vector 'x' (will be treated as character).
Return (named) list of indexes for each of the repeated values, or NULL
if all values are unique.
This approach is similar but more basic compared to get1stOfRepeatedByCol
.
findRepeated(x, nonRepeated = FALSE, silent = FALSE, callFrom = NULL)
character vector
(logical) if =TRUE
, return list with elements $rep
and $nonrep
(logical) suppress messages
(character) allow easier tracking of message(s) produced
(named) list of indexes for each of the repeated values, or NULL if all values unique
similar approach but more basic than get1stOfRepeatedByCol
# NOT RUN {
aa <- c(11:16,14:12,14); findRepeated(aa)
# }
Run the code above in your browser using DataLab