Make Duplicated Character Strings Unique adds ".1", ".2", etc. to duplicate values
Source:R/main.R
makeUnique.Rd
Make Duplicated Character Strings Unique
adds ".1", ".2", etc. to duplicate values
Arguments
- x
vector of character strings
- warn
if
TRUE
(default) a warning showing the duplicated values is given- sep
separator between name and suffix number. Default: "."
- simple
if
TRUE
all elements with identical name (e.g. "a") are numbered (e.g. "a.1", "a.2", "a.3"), otherwise the first element is kept unchanged and all but the first one are numbered (e.g. "a", "a.1", "a.2"). The default isFALSE
.