Learn R Programming

secr (version 2.0.0)

polyarea: Area of simple polygon

Description

Area of a closed polygon

Usage

polyarea(xy, ha = TRUE)

Arguments

xy
dataframe or list with components `x' and `y'
ha
logical if TRUE output is converted from square metres to hectares

Value

  • A scalar

See Also

buffer.contour

Examples

Run this code
polyarea(make.grid(hollow = TRUE))

Run the code above in your browser using DataLab