make.uniqueIF: produces unique strings from duplicated

make.uniqueIF(string, sep = "_", letter = FALSE)

Arguments

string

name of char. vector

sep

separator

letter

boolean, use numbers when FALSE

Value

character vector

Examples

make.uniqueIF(c(1, 1, 2, 2))
#> [1] "1_1" "1_2" "2_1" "2_2"