Description Usage Arguments Value Examples
Helper function to extract the area slots from
SpatialPolygons
objects
1 | extract_area(sp_poly)
|
sp_poly |
An object of class |
A numeric vector with the areas of all polygons in the object. The areas for polygons that represent holes are stored as negative values.
1 2 3 4 | library(sp);
library(maptools);
data("state.vbm");
a <- extract_area(state.vbm);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.