names_to_numbered_vec_by_uniqueness: names to list of numbers by uniqueness

Description Usage Examples

View source: R/helper-functions.R

Description

function to convert a list of names to a numbered vector 1:N where N is the number of unique names (each unique name has a different number)

Usage

1

Examples

1
2
names_to_numbered_vec_by_uniqueness(c('a', 'b', 'a', 'c')) # returns: 1, 2, 1, 3
names_to_numbered_vec_by_uniqueness(c(11, 35, 44, 11, 35, 66)) # returns: 1, 2, 3, 1, 2, 4

Paradigm4/revealgenomics documentation built on Jan. 17, 2019, 3:53 a.m.