Description Usage Arguments Examples
Expect coordinate reference systems
1 | expect_crs(object, epsg = NULL, proj4string = NULL)
|
object |
object of class |
epsg |
A character for EPSG codes |
proj4string |
A character string of projection arguments |
1 2 3 4 5 6 | sfc <- sf::st_sfc(sf::st_point(c(0, 0)),
sf::st_point(c(1, 1)))
sf <- sf::st_sf(a = 1:2, geom = sfc)
sf::st_crs(sf) <- 4326
expect_crs(sf, 4326)
expect_crs(sf, proj4string = "+proj=longlat +datum=WGS84 +no_defs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.