powered by
This function aims to avoid duplicating items between 'curNa' and 'newNa' by incrementing digits after 'extPref' (in newNa)
.corDuplItemsByIncrem(newNa, curNa, extPref = "_s")
This function returns the corrected input vector newNa
newNa
(character) main input 1
(character) main input 2
(character) extension
duplicated
.corDuplItemsByIncrem(letters[1:6], letters[8:4])
Run the code above in your browser using DataLab