Make Duplicated Character Strings Unique

adds ".1", ".2", etc. to duplicate values

makeUnique(x, warn = TRUE)

Arguments

x

vector of character strings

warn

if TRUE (default) a warning showing the duplicated values is given

Value

x with duplicate elements being modified to "element.1", "element.2", etc.