poly.areas: Area of Each Polygon

View source: R/poly.counts.R

Polygon AreasR 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)

GISTools documentation built on Oct. 3, 2024, 1:08 a.m.