powered by
Create a set of valid names (trimmed, no duplicates, not starting with a number).
validNames(x, prefix='layer')
character
character string used if x is empty
make.names
# NOT RUN { validNames(c('a', 'a', '', '1', NA, 'b', 'a')) # }
Run the code above in your browser using DataLab