str_uniquify | R Documentation |
Make strings unique by adding a suffix to indicate which number copy it is.
str_uniquify(string, suffix = " (%d)", pad = F)
string |
(chr vector) A character vector. |
suffix |
(chr vector) A character to use to make unique suffixes. Must contain |
pad |
Whether to pad numbers by adding 0's in front to keep the same length in all suffixes. |
str_uniquify(letters[rep(1, 3)])
str_uniquify(letters[rep(1, 3)], suffix = ', %d')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.