areaAndPolyValue: Determine the area of each zone in a raster

View source: R/GIS.R

areaAndPolyValueR Documentation

Determine the area of each zone in a raster

Description

Polygonize a raster and calculate the area of each polygon.

Usage

areaAndPolyValue(ras, ...)

## S3 method for class 'Raster'
areaAndPolyValue(ras, ...)

## S3 method for class 'SpatRaster'
areaAndPolyValue(ras, ...)

Arguments

ras

A Raster or SpatRaster object

...

Additional arguments (not used)

Value

list containing: sizeInHa, the area; and polyID, the polygon ID.


PredictiveEcology/map documentation built on June 15, 2025, 6:15 a.m.