Polygon Areas {GISTools}R Documentation

Area of Each Polygon

Description

Given a set of polygons, returns the area of each polygon.

Usage

poly.areas(polys)

Arguments

polys

A SpatialPolygons or SpatialPolygonsDataFrame or sf -POLYGON or - MULTIPOLYGON object.

Value

A list of areas of the same length as the number of polygons in polys.

Author(s)

Chris Brunsdon, Binbin Lu

Examples

# Data for New Haven to use in example
data(newhaven)
# What is the area each census block?
poly.areas(blocks)

[Package GISTools version 1.0-2 Index]