drt_mask: Mask a spatial layer by a polygon

Description Usage Arguments Value Examples

Description

Mask a spatial layer by a polygon

Usage

1
drt_mask(layer, aoi)

Arguments

layer

spatial object to crop by the polygon.

aoi

spatial object, polygon to mask to.

Value

A masked sf.

Examples

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)

munterfinger/drtplanr documentation built on Oct. 3, 2021, 7:28 p.m.