I have a vector of strings. Check out my vector, it\'s awesome:
awesome
> awesome [1] \"a\" \"b\" \"c\" \"d\" \"d\" \"e\" \"f\" \"f\"
Try make.unique() where the very first example of the help page is already spot-on:
make.unique()
make.unique(c("a", "a", "a")) [1] "a" "a.1" "a.2"
The help page lists Thomas Minka as author. Buy him a beer one day :)