make_ids {disprose} | R Documentation |
Create unique identification values
Description
Creates unique identification values by adding numbers to identical values.
Usage
make_ids(var, sep = "_")
Arguments
var |
vector of values |
sep |
character; string to separate the terms |
Details
This function takes vector with same values and adds numbers to create unique values.
Value
Character vector of var
with attached numbers.
Author(s)
Elena N. Filatova
Examples
var<-c("one", "two", "three", "one", "two", "three", "one")
make_ids(var)
[Package disprose version 0.1.6 Index]