calc_area | R Documentation |
Calculate area of polygon
calc_area(x)
x |
matrix with x,y coordinates. |
Calculate area of polygon in input units. If the polygon is not closed, the first coordinate is used as last coordinate to close it.
numeric
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.