R/new_name.R
new_name.Rd
new_name() generates unique names for additional data frame variables ensuring they are not already present.
new_name()
new_name(x, n = 1L)
A data frame.
Number of unique names to generate.
A character vector of unique names not already found in x.
x
new_name(mtcars) #> [1] "new16c0163cecad" new_name(mtcars, 2) #> [1] "new16c0feeaf7" "new16c04a34f5dd"