reproject | R Documentation |
Reproject a raster or vector dataset to the specified coordinate reference system (CRS)
reproject(x, crs, ...)
x |
Raster or vector object |
crs |
CRS to be projected to |
... |
Optional arguments for raster or vector reproject functions |
Object reprojected to specified CRS
# Reproject a raster to EPSG:4326
r <- terra::rast(matrix(1:12, nrow = 3, ncol = 4), crs = "EPSG:32633")
reproject(r, 4326)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.