
 
I have a column containing duplicate entries and need to append numeric suffixes to make them unique. How ?
 
e.g., paste("id", c(1:10,1,5,10,10), sep=".")
 [1] "id.1"  "id.2"  "id.3"  "id.4"  "id.5"  "id.6"  "id.7"  "id.8"  "id.9"[10] "id.10" "id.1"  "id.5"  "id.10" "id.10" 
I hope to get
 [1] "id.1"  "id.2"  "id.3"  "id.4"  "id.5"  "id.6"  "id.7"  "id.8"  "id.9"[10] "id.10" "id.1.1"  "id.5.1"  "id.10.1" "id.10.2"
 
_________________________________________________________________
[[elided Hotmail spam]]

	[[alternative HTML version deleted]]

