.uniqueWName {wrMisc} | R Documentation |
Check regression arguments
Description
This function is an enhanced version of unique
, names of elements are maintained
Usage
.uniqueWName(
x,
splitSameName = TRUE,
silent = TRUE,
debug = FALSE,
callFrom = NULL
)
Arguments
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 |
Value
vector like input
See Also
Examples
aa <- c(a=11, b=12,a=11,d=14, c=11)
.uniqueWName(aa)
.uniqueWName(aa[-1]) # value repeated but different name
[Package wrMisc version 1.15.1 Index]