validNames: Create valid names

View source: R/names.R

validNamesR Documentation

Create valid names

Description

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

Examples

validNames(c('a', 'a', '', '1', NA, 'b', 'a'))

raster documentation built on Oct. 3, 2024, 1:08 a.m.