powered by
This function is an enhanced version of unique, names of elements are maintained
unique
.uniqueWName( x, splitSameName = TRUE, silent = TRUE, debug = FALSE, callFrom = NULL )
vector like input
(numeric or character vector) main input
(logical)
(logical) suppress messages
(logical) additional messages for debugging
(character) allow easier tracking of messages produced
aa <- c(a=11, b=12,a=11,d=14, c=11) .uniqueWName(aa) .uniqueWName(aa[-1]) # value repeated but different name
Run the code above in your browser using DataLab