R/studyAreaGroups.R
studyAreaCrosswalk.RdConvenience 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
)character specifying path to destination directory
character specifying the CRS to reproject polygons to
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.
character naming the grouping-unit column in that layer
(default "REGION_NAM", the ecoregion name).
logical; reuse/save file.path(destinationPath, "studyAreaCrosswalk.rds").
the crosswalk data.frame (see build_studyarea_crosswalk()).