Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

polyarea

Area of Polygon(s)


Description

Area of a single closed polygon (simple x-y coordinate input) or of multiple polygons, possibly with holes.

Usage

polyarea(xy, ha = TRUE)

Arguments

xy

dataframe or list with components ‘x’ and ‘y’, or a SpatialPolygons or SpatialPolygonsDataFrame object from package sp

ha

logical if TRUE output is converted from square metres to hectares

Details

For SpatialPolygons or SpatialPolygonsDataFrame objects, the packages sp and rgeos are used.

Value

A scalar.

See Also

Examples

polyarea(make.grid(hollow = TRUE))

secr

Spatially Explicit Capture-Recapture

v4.4.1
GPL (>= 2)
Authors
Murray Efford
Initial release
2021-05-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.