make_spanish_names: Generates a random name from a list of common Spanish words.

Description Usage Arguments Value Examples

View source: R/make_names.R

Description

This function generates 'n' random names, each a combination of 'n_words' words selected from [spanish_words].

Usage

1
2
3
4
5
6
7
make_spanish_names(
  n,
  n_words = 3,
  retry = FALSE,
  sep = "_",
  case = c("lower", "upper", "title")
)

Arguments

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.

Examples

1
2
make_spanish_names(1, n_words = 2)
make_spanish_names(2, retry = TRUE)

proceduralnames documentation built on Oct. 12, 2021, 5:08 p.m.