Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

spTransform

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 signature 'SpatialStack,ANY'
spTransform(x, CRSobj, ...)

## S4 method for signature 'SpatialArray,ANY'
spTransform(x, CRSobj, ...)

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.

Value

Examples

# load example data
data(coasts)
mollCoast <- spTransform(coasts, "+proj=moll")

chronosphere

Earth System History Variables

v0.4.1
CC BY 4.0
Authors
Adam T. Kocsis, Nussaibah B. Raja
Initial release
2021-04-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.