getArea reports the area of a RasterLayer object using the pixel
counting method.
# S3 method for RasterLayer
getArea(x, value.to.count, ...)The total area of the cells of interest in km2
Either a RasterLayer object. No data value should be NA
Optional. Value of the cells in a RasterLayer to be counted
Addition arguments based on input format
Nicholas Murray murr.nick@gmail.com, Calvin Lee calvinkflee@gmail.com
Other Change functions:
getArea.SpatRaster(),
getArea.SpatVect(),
getArea.SpatialPolygons(),
getArea.sf(),
getAreaLoss(),
getArea(),
getDeclineStats()