Learn R Programming

wrMisc (version 1.15.3.1)

.corDuplItemsByIncrem: Avoid duplicating items between 'curNa' and 'newNa' by incrementing digits after 'extPref' (in newNa)

Description

This function aims to avoid duplicating items between 'curNa' and 'newNa' by incrementing digits after 'extPref' (in newNa)

Usage

.corDuplItemsByIncrem(newNa, curNa, extPref = "_s")

Value

This function returns the corrected input vector newNa

Arguments

newNa

(character) main input 1

curNa

(character) main input 2

extPref

(character) extension

See Also

Examples

Run this code
.corDuplItemsByIncrem(letters[1:6], letters[8:4])

Run the code above in your browser using DataLab