Convenience wrapper that assembles build_studyarea_crosswalk()'s inputs from the packaged prep helpers — prepFMAs() for the FMA boundaries and, by default, prepEcoregionLayer() for the grouping layer — and caches the result under destinationPath so repeated study-area setups within a run do not rebuild it (the overlay is the expensive part).

studyAreaCrosswalk(
  destinationPath,
  targetCRS = LandWebCRS,
  eco = prepEcoregionLayer,
  eco_field = "REGION_NAM",
  cache = TRUE
)

Arguments

destinationPath

character specifying path to destination directory

targetCRS

character specifying the CRS to reproject polygons to

eco

a function of (destinationPath, targetCRS) returning the ecological grouping layer as sf (default prepEcoregionLayer); pass prepEcoprovinceLayer for coarser groups or a custom prep for a different eco\* layer.

eco_field

character naming the grouping-unit column in that layer (default "REGION_NAM", the ecoregion name).

cache

logical; reuse/save file.path(destinationPath, "studyAreaCrosswalk.rds").

Value

the crosswalk data.frame (see build_studyarea_crosswalk()).