.uniqueWName | R Documentation |
This function is an enhanced version of unique
, names of elements are maintained
.uniqueWName(
x,
splitSameName = TRUE,
silent = TRUE,
debug = FALSE,
callFrom = NULL
)
x |
(numeric or character vector) main input |
splitSameName |
(logical) |
silent |
(logical) suppress messages |
debug |
(logical) additional messages for debugging |
callFrom |
(character) allow easier tracking of messages produced |
vector like input
unique
aa <- c(a=11, b=12,a=11,d=14, c=11)
.uniqueWName(aa)
.uniqueWName(aa[-1]) # value repeated but different name
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.