powered by
Convert a character vector into a similar character vector that would work better as names in a data frame by avoiding certain awkward characters
nice_names(x, unique = TRUE)
a character vector
a logical indicating whether returned values should be uniquified.
nice_names( c("bad name", "name (crazy)", "a:b", "two-way") )
Run the code above in your browser using DataLab