Description Usage Arguments Value Examples
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.
1 | 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.
1 2 | psichomics:::renameDuplicated(check = c("blue", "red"), comp = c("green",
"blue"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.