createRandomString: Unique random string generator

Description Usage Arguments Value Examples

View source: R/internal_functions.r

Description

Generates n unique random character strings of a given length. Note that the length must be big enought in order to avoid offsetting the number n of strings requested

Usage

1
createRandomString(n = 1, strlen = 10)

Arguments

n

the number of unique random strings to return

strlen

random string length

Value

a vector of unique random character strings

Examples

1
2
3
4
# To ensure reproducibility make sure to set the seed
set.seed(123456789)

createRandomString(1, 10)

ccbiolab/svpluscnv documentation built on Sept. 9, 2020, 4:52 a.m.