Create valid names
Create a set of valid names (trimmed, no duplicates, not starting with a number).
validNames(x, prefix='layer')
x |
character |
prefix |
character string used if x is empty |
character
validNames(c('a', 'a', '', '1', NA, 'b', 'a'))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.