polyarea: Area of Polygon(s)

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
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

buffer.contour

Examples

1
polyarea(make.grid(hollow = TRUE))


Search within the secr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.