Learn R Programming

psda (version 1.4.0)

parea: Polygonal Area

Description

Compute the area of polygon.

Usage

parea(polygon)

Arguments

polygon

a matrix representing the polygon.

Value

a integer the area of polygon.

Examples

Run this code
# NOT RUN {
x <- psim(10, 10) #simulate 10 polygons of 10 sides
x <- x[[1]] 
parea(x)
# }

Run the code above in your browser using DataLab