Set the names of a spatial object.

setNames(x, to, ...)

# S4 method for ANY
setNames(x)

# S4 method for geom
setNames(x, to = NULL)

Arguments

x

the object for which to set a new name.

to

new name(s).

...

other arguments.

Value

The object x with an update name.

See also

Other setters: setCRS(), setFeatures(), setGroups(), setHistory(), setWindow()

Examples

visualise(gtGeoms$grid$categorical)


cover <- setNames(x = gtGeoms$grid$categorical, to = "cover")

visualise(cover)