validNames

0th

Percentile

Create valid names

Create a set of valid names (trimmed, no duplicates, not starting with a number).

Usage
validNames(x, prefix='layer')
Arguments
x

character

prefix

character string used if x is empty

Value

character

See Also

make.names

Aliases
  • validNames
Examples
# NOT RUN {
validNames(c('a', 'a', '', '1', NA, 'b', 'a'))
# }
Documentation reproduced from package raster, version 2.9-5, License: GPL (>= 3)

Community examples

Looks like there are no examples yet.