make_ids | R Documentation |
Creates unique identification values by adding numbers to identical values.
make_ids(var, sep = "_")
var |
vector of values |
sep |
character; string to separate the terms |
This function takes vector with same values and adds numbers to create unique values.
Character vector of var
with attached numbers.
Elena N. Filatova
var<-c("one", "two", "three", "one", "two", "three", "one") make_ids(var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.