Description Usage Arguments Value Examples
Mask a spatial layer by a polygon
1 | drt_mask(layer, aoi)
|
layer |
spatial object to crop by the polygon. |
aoi |
spatial object, polygon to mask to. |
A masked sf.
1 2 3 4 5 6 7 8 | # Example data
aoi <-
sf::st_read(system.file("example.gpkg", package = "drtplanr"), layer = "aoi")
pop <-
sf::st_read(system.file("example.gpkg", package = "drtplanr"), layer = "pop")
drt_mask(pop, aoi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.