check_crs | R Documentation |
This function checks that coordinate reference systems (CRS) match.
check_crs(...)
... |
Objects of |
The first (‘baseline’) CRS is compared against that for every other input. NULL
inputs are ignored. For any mismatches, an instructive warning is returned alongside the details of each mismatch.
Edward Lavender
## Not run:
# The function can accept spatial objects
check_crs(dat_gebco, dat_coast)
check_crs(
dat_gebco,
dat_coast,
raster::raster(matrix(1))
)
# The function can accept CRS objects
check_crs(dat_gebco, sp::CRS(as.character(NA)))
# The function can accept NULL elements
check_crs(dat_gebco, NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.