Ensures there are n number of names in name. If not, permutations of the values in name are catentated together to reeach the requestion amount. This function can also be used to make n number of unique names by passing NA to name, in which case the default is to use LETTERS.

prep_node_names(n, name = c())

Arguments

n

number of names desired

name

a vector of names; default is LETTERS

Value

a vector of n unique names

Examples

prep_node_names(5)
#> [1] "A" "B" "C" "D" "E"
head(prep_node_names(50))
#> [1] "AB" "AC" "AD" "AE" "AF" "AG"