Learn R Programming

geometr (version 0.2.10)

getNames: Get the name(s) of a spatial object.

Description

Get the name(s) of a spatial object.

Usage

getNames(x, ...)

# S4 method for ANY getNames(x)

# S4 method for geom getNames(x)

# S4 method for sf getNames(x)

# S4 method for Raster getNames(x)

Arguments

x

the object from which to get the name.

...

other arguments.

Value

A vector of the names of x.

See Also

Other getters: getCRS(), getCols(), getExtent(), getFeatures(), getGroups(), getHistory(), getLayers(), getPoints(), getRes(), getRows(), getType(), getWindow()

Examples

Run this code
# NOT RUN {
getNames(x = gtGeoms$grid$continuous)

getNames(x = gtSF$polygon)

getNames(x = gtRasters)
# }

Run the code above in your browser using DataLab