renameDuplicated {psichomics} | R Documentation |
Renames values by adding an index to the end of duplicates. This allows to prepare unique values in two vectors before a merge, for instance.
renameDuplicated(check, comp)
check |
Character: values to rename if duplicated |
comp |
Character: values to compare with |
Character vector with renamed values if duplicated; else, it returns the usual values. It does not return the comparator values.
psichomics:::renameDuplicated(check = c("blue", "red"), comp = c("green", "blue"))