make_ids: Create unique identification values

View source: R/common.R

make_idsR 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)


disprose documentation built on March 19, 2022, 2:15 a.m.

Related to make_ids in disprose...