Skip to contents

This function rapidly masks a Rast object to an sf object.

Usage

mask_raster_to_polygon(
  ras = NULL,
  mask = NULL,
  inverse = FALSE,
  updatevalue = NA
)

Arguments

ras

A Rast object.

mask

A Rast or sf object.

inverse

Logical. If TRUE, the mask is inverted.

updatevalue

The value to update the Rast object with.