Description Usage Arguments Details Value Examples
Get the coordinate reference system (CRS) of a Raster*, sf, or Spatial object.
1 | projection(x, asText = TRUE)
|
x |
Raster*, sf, or Spatial object |
asText |
logical. If TRUE, the projection is returned as text. Otherwise a CRS object is returned |
See projection
for more details.
character object
1 2 | x <- read_sf(system.file("shape/nc.shp", package="sf"))
projection(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.