Learn R Programming

SpaDES (version 1.2.0)

layerNames: Extract the layer names of Spatial Objects

Description

There are already methods for Raster* objects. This adds methods for SpatialPoints*, SpatialLines*, and SpatialPolygons*, returning an empty character vector of length 1. This function was created to give consistent, meaningful results for all classes of objects plotted by Plot.

Usage

layerNames(object)
"layerNames"(object)
"layerNames"(object)
"layerNames"(object)
"layerNames"(object)
"layerNames"(object)

Arguments

object
A Raster*, SpatialPoints*, SpatialLines*, or SpatialPolygons* object; or list of these.