computeArea {diseasemapping}R Documentation

Compute areas of polygons

Description

Computes the areas of all the polygons of a spatialPolygonsDataFrame object

Usage

computeArea(sp)

Arguments

sp A spatialPolygonsDataFrame

Value

A list, each element containing the area of a polygon.

Examples

data(popdata)
theAreas = computeArea(popdata)
# histogram of areas of ontario CDS's
hist(unlist(theAreas))



[Package diseasemapping version 0.5.3 Index]