fm_crs_is_identical: Check if two CRS objects are identical

View source: R/crs.R

fm_crs_is_identicalR Documentation

Check if two CRS objects are identical

Description

Check if two CRS objects are identical

Usage

fm_crs_is_identical(crs0, crs1, crsonly = FALSE)

fm_identical_CRS(crs0, crs1, crsonly = FALSE)

Arguments

crs0, crs1

Two sf::crs, sp::CRS, fm_crs or inla.CRS objects to be compared.

crsonly

logical. If TRUE and any of crs0 and crs1 are fm_crs or inla.CRS objects, extract and compare only the sf::crs or sp::CRS aspects. Default: FALSE

Value

logical, indicating if the two crs objects are identical in the specified sense (see the crsonly argument)

Functions

  • fm_identical_CRS(): [Deprecated] by fm_crs_is_identical().

See Also

fm_crs(), fm_CRS(), fm_crs_is_null()

Examples


crs0 <- crs1 <- fm_crs("longlat_globe")
fm_crs_oblique(crs1) <- c(0, 90)
print(c(
  fm_crs_is_identical(crs0, crs0),
  fm_crs_is_identical(crs0, crs1),
  fm_crs_is_identical(crs0, crs1, crsonly = TRUE)
))

fmesher documentation built on Nov. 2, 2023, 5:35 p.m.