Learn R Programming

oceanexplorer (version 0.1.0)

reproject: Re-projecting spatial objects to new epsg

Description

Easy re-projecting of the epsg of sf and stars objects.

Usage

reproject(obj, epsg, ...)

# S3 method for sf reproject(obj, epsg, ...)

# S3 method for stars reproject(obj, epsg, ...)

Value

sf or stars object

Arguments

obj

The sf or stars object to be re-projected.

epsg

The projection (currently only: "3031", or "3995").

...

Currently not supported.

Examples

Run this code

if (interactive()) {
# get data
NOAA <- get_NOAA("temperature", 1, "annual")

# reproject data with new epsg
reproject(NOAA, 3031)
}

Run the code above in your browser using DataLab