approx_areas(shp, total.area.km2 = NA, units = NULL)
shp
in number of squared kilometers. If NA
, and unit="km2"
, then the polygon coordinates are assumed to be in meters."abs"
, unless total.area.km2
is specified (in that case, it is "km2"
).total.area.km2
is required. Note that this method is an approximation, since it depends on the used projection and the level of detail of the SpatialPolygons object. Projections with equal-area property are highly recommended.