spTransform,SpatialStack,ANY-method: Function to transform the coordinate reference system of an entire SpatialStack or SpatialArray
Description
Joint reprojection of entire sets of vector data.
Usage
# S4 method for SpatialStack,ANY
spTransform(x, CRSobj, ...)# S4 method for SpatialArray,ANY
spTransform(x, CRSobj, ...)
Value
A SpatialStack
or SpatialArray
object.
Arguments
- x
The SpatialStack
or SpatialArray
object.
- CRSobj
A CRS
class or character
object defining a coordinate reference system.
- ...
Additional arguments.
Details
The function requires the rgdal package to run.
Examples
Run this code# load example data
data(coasts)
mollCoast <- spTransform(coasts, "+proj=moll")
Run the code above in your browser using DataLab