powered by
This function takes a vector of names and ensures that each name is unique by appending a number if necessary.
make_unique_names(names)
A character vector of unique names.
A character vector of names.
make_unique_names(c("apple", "apple", "banana", "apple"))
Run the code above in your browser using DataLab