powered by
validNames(x, prefix='layer')
make.names
validNames(c('a', 'a', '', '1', NA, 'b', 'a'))
Run the code above in your browser using DataLab