
Last chance! 50% off unlimited learning
Sale ends in
make.unique(names, sep = ".")
names
with duplicates
changed, in the current locale's encoding.
make.unique
has the property that
make.unique(c(A, B)) == make.unique(c(make.unique(A), B))
. In other words, you can append one string at a time to a vector,
making it unique each time, and get the same result as applying
make.unique
to all of the strings at once.
If character vector A
is already unique, then
make.unique(c(A, B))
preserves A
.
make.names
make.unique(c("a", "a", "a"))
make.unique(c(make.unique(c("a", "a")), "a"))
make.unique(c("a", "a", "a.2", "a"))
make.unique(c(make.unique(c("a", "a")), "a.2", "a"))
rbind(data.frame(x = 1), data.frame(x = 2), data.frame(x = 3))
rbind(rbind(data.frame(x = 1), data.frame(x = 2)), data.frame(x = 3))
Run the code above in your browser using DataLab