Generates random names.

rNames(n, nchar = 3L)

Arguments

n

Number of names.

nchar

Maximal number of characters for each name.

Value

A character vector of valid names.

Details

This function is a utility function for tests concerning the parsing of formulas.

Examples

set.seed(31415)
rNames(4)
#> [1] "AE"  "UAI" "OL"  "A"  
rNames(4, nchar = 6)
#> [1] "IAG" "AHR" "A"   "CDA"