powered by
Creates unique identification values by adding numbers to identical values.
make_ids(var, sep = "_")
vector of values
character; string to separate the terms
Character vector of var with attached numbers.
var
This function takes vector with same values and adds numbers to create unique values.
# NOT RUN { var<-c("one", "two", "three", "one", "two", "three", "one") make_ids(var) # }
Run the code above in your browser using DataLab