limma (version 3.28.14)

makeUnique: Make Values of Character Vector Unique

Description

Paste characters on to values of a character vector to make them unique.

Usage

makeUnique(x)

Arguments

x
object to be coerced to a character vector

Value

A character vector of the same length as x

Details

Repeat values of x are labelled with suffixes "1", "2" etc.

See Also

makeUnique is called by merge.RGList. Compare with make.unique in the base package.

Examples

Run this code
x <- c("a","a","b")
makeUnique(x)

Run the code above in your browser using DataLab