util_rand_str: Generate a String with Random Characters

Description Usage Arguments Details Author(s) Examples

View source: R/util_rand_str.R

Description

Generates random character string composed of lower and upper case letters with an option to include digits.

Usage

1
util_rand_str(characters = 8L, digits = FALSE, ext = NULL)

Arguments

characters

Integer. Number of characters.

digits

Logical. Use digits.

ext

Character string. Optional file extension.

Details

To ensure that the character string generated is a valid R variable name, the first character will always be a lower case or upper case letter when digits = TRUE.

Author(s)

Ivan Jacob Agaloos Pesigan

Examples

1
util_rand_str(characters = 8L, ext = "R")

jeksterslabds/jeksterslabRutils documentation built on Jan. 18, 2021, 11:41 p.m.