Set the names of a spatial object.
setNames(x, to, ...) # S4 method for ANY setNames(x) # S4 method for geom setNames(x, to = NULL)
| x | the object for which to set a new name. |
|---|---|
| to | new name(s). |
| ... | other arguments. |
The object x with an update name.
Other setters:
setCRS(),
setFeatures(),
setGroups(),
setHistory(),
setWindow()
visualise(gtGeoms$grid$categorical)cover <- setNames(x = gtGeoms$grid$categorical, to = "cover") visualise(cover)
![]()