Last chance! 50% off unlimited learning
Sale ends in
This function is an enhanced version of unique
, names of elements are maintained
.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