create_randomstring: Create a random string of n length.

View source: R/utils.R

create_randomstringR Documentation

Create a random string of n length.

Description

Using paste0 and sample, a specified length of randomly selected letters and numbers will be pasted together.

Usage

create_randomstring(length = 8L)

Arguments

length

Numeric value, will be coerced into an integer. Defaults to 8L.

Value

Character vector matching provided length.

Examples

create_randomstring()
create_randomstring(5L)
create_randomstring(17)


al-obrien/farrago documentation built on April 14, 2023, 6:20 p.m.