Compute the area of a cellSource:
Compute the area of a cell
unitobject or a
characterthat can be coerced to a unit (see
unitpackage). Must be an area unit.
The input raster must have a projected coordinate system. The distortion is
not corrected. It could be using the
cellSize function of the
package, but this function is currently pretty slow for large rasters. If
your problem is at regional scale, the distortion should be negligible.
However, at larger scales, the best is to use an equal-area projected