polyarea | R Documentation |
Area of a single closed polygon (simple x-y coordinate input) or of multiple polygons, possibly with holes.
polyarea(xy, ha = TRUE)
xy |
dataframe or list with components ‘x’ and ‘y’, or a SpatialPolygons or SpatialPolygonsDataFrame object from package sp, or an sf object with polygon data |
ha |
logical if TRUE output is converted from square metres to hectares |
For sf, sfc, SpatialPolygons or SpatialPolygonsDataFrame objects, the package sf is used.
A scalar.
bufferContour
polyarea(make.grid(hollow = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.