make_names: Create procedural names.

View source: R/make_names.R

make_namesR Documentation

Create procedural names.

Description

Create procedural names.

Usage

make_names(corpus, n, n_words, retry, sep = "_", case)

Arguments

corpus

A vector of strings to build names from.

n

The number of random names to be generated.

n_words

The number of words to combine into a name.

retry

If 'TRUE', a random integer between 1 and 10 is appended to each generated name.

sep

A character string to separate the terms. Not 'NA_character_'.

case

One of either "lower", "upper", or "title". The capitalization to use for each word.

Value

A character vector of length 'n' of random names, each composed of 'n_word' terms capitalized according to 'case' separated by 'sep'. Note that names are not guaranteed to be unique.


proceduralnames documentation built on Aug. 11, 2022, 5:12 p.m.