getIntersection | R Documentation |
get the intersection between to maps with ids. Caches the result in the working directory.
getIntersection(
inputShape,
outputShape,
suffix = c(".x", ".y"),
recalcArea = TRUE,
...
)
inputShape |
- the input sf |
outputShape |
- the output sf |
suffix |
- the suffix of any duplicated columns as per dplyr::inner_join() |
recalcArea |
- do you need the area of the intersected shape (e.g. for areal interpolation) |
... |
passed on to .cached() (cache control) - relevant is nocache = TRUE which prevents this from being precalculated |
a sf object representing the intersection of the input and output shapes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.