RandomName: Generate a random name

View source: R/utils.R

RandomNameR Documentation

Generate a random name

Description

Make a name from randomly sampled characters, pasted together with no spaces

Usage

RandomName(length = 5L, chars = letters, ...)

Arguments

length

How long should the name be

chars

A vector of 1-length characters to use to generate the name

...

Extra parameters passed to sample

Value

A character with nchar == length of randomly sampled letters

See Also

sample

Examples

set.seed(42L)
RandomName()
RandomName(7L, replace = TRUE)


SeuratObject documentation built on May 29, 2024, 12:31 p.m.