gen_altnames: Alternative Names Generator

View source: R/strings_utils.R

gen_altnamesR Documentation

Alternative Names Generator

Description

Generates unique non matching alternative names

Usage

gen_altnames(
  x,
  n = 10,
  forbidden = character(),
  random_seed = list(seed = 252, "Mersenne-Twister", "Inversion", "Rounding")
)

Arguments

x

a character vector.

n

number of characters of the desired returned name. Default is 10.

forbidden

forbidden character vector. Default is character().

random_seed

a list of elements to pass to set.seed or a single value, interpreted as an integer, or NULL. Default is list(seed = 0xFC, "Mersenne-Twister", "Inversion", "Rounding"). Note that NA_integer_ or list(seed = NA_integer_) can be used to not call set.seed at all. Note also that the default is chosen because it is compatible with old R version.

Details

'forbidden' should not encompass all possible returned value otherwise the function will never end.

Value

a character vector.


IFC documentation built on Sept. 14, 2023, 1:08 a.m.