Create a polygon sf object from a raster, stack, or brick.

raster_to_polygon(raster, na.rm = FALSE)

Arguments

raster

A raster, stack, or brick object

na.rm

boolean. If TRUE will polygonize only non-NA cells. Defualt is FALSE.

Author

Chris R. Vernon (chris.vernon@pnnl.gov)