Area of Polygon(s)
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 |
ha |
logical if TRUE output is converted from square metres to hectares |
For SpatialPolygons or SpatialPolygonsDataFrame objects, the packages sp and rgeos are used.
A scalar.
polyarea(make.grid(hollow = TRUE))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.