calc_area: calc_area

View source: R/calc_area.R

calc_areaR Documentation

calc_area

Description

Calculate area of polygon

Usage

calc_area(x)

Arguments

x

matrix with x,y coordinates.

Details

Calculate area of polygon in input units. If the polygon is not closed, the first coordinate is used as last coordinate to close it.

Value

numeric

Examples

## Not run: 
dat <- matrix(data = c(0, 0, 0, 10, 10, 10, 10, 0), ncol = 2, byrow = TRUE)
calc_area(x = dat)

## End(Not run)


onpoint documentation built on Nov. 16, 2022, 1:08 a.m.

Related to calc_area in onpoint...