Learn R Programming

redlistr (version 1.0.4)

getArea.SpatRaster: Calculates the Area of a Raster from SpatRaster.

Description

getArea reports the area of a SpatRaster object using terra::expanse

Usage

# S3 method for SpatRaster
getArea(x, byValue, ...)

Value

The total area of the cells of interest in km2

Arguments

x

SpatRaster

byValue

Logical. If TRUE, the area for each unique cell value is returned.

...

Addition arguments based on input format

Author

Nicholas Murray murr.nick@gmail.com, Calvin Lee calvinkflee@gmail.com

See Also

Other Change functions: getArea.RasterLayer(), getArea.SpatVect(), getArea.SpatialPolygons(), getArea.sf(), getAreaLoss(), getArea(), getDeclineStats()