makeUnique: function to make ID unique

View source: R/makeUnique.R

makeUniqueR Documentation

function to make ID unique

Description

function to make ID unique

Usage

makeUnique(sampleID, sep = "#", fromFirst = FALSE, reverse = FALSE, first = 1)

Arguments

sampleID

sampleID

sep

the separator

fromFirst

if true all replicate including the first will be marked

reverse

if true start marking from last

first

a number to start numbering from

Value

unique ID

Examples

a <- c("a", "a", "b", "a", "b", "c")
makeUnique(a)


jwist/fusion documentation built on Jan. 25, 2024, 3:24 p.m.