Learn R Programming

redlistr (version 1.0.4)

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

Description

getArea reports the area of a RasterLayer object using the pixel counting method.

Usage

# S3 method for RasterLayer
getArea(x, value.to.count, ...)

Value

The total area of the cells of interest in km2

Arguments

x

Either a RasterLayer object. No data value should be NA

value.to.count

Optional. Value of the cells in a RasterLayer to be counted

...

Addition arguments based on input format

Author

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

See Also

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