computeArea {diseasemapping} | R Documentation |
Computes the areas of all the polygons of a spatialPolygonsDataFrame object
computeArea(sp)
sp |
A spatialPolygonsDataFrame |
A list, each element containing the area of a polygon.
data(popdata) theAreas = computeArea(popdata) # histogram of areas of ontario CDS's hist(unlist(theAreas))