extract_area: Helper function to extract the area slots from...

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Helper function to extract the area slots from SpatialPolygons objects

Usage

1
extract_area(sp_poly)

Arguments

sp_poly

An object of class SpatialPolygons

Value

A numeric vector with the areas of all polygons in the object. The areas for polygons that represent holes are stored as negative values.

Examples

1
2
3
4
library(sp);
library(maptools);
data("state.vbm");
a <- extract_area(state.vbm);

AWF-GAUG/fisim documentation built on May 28, 2019, 11:02 a.m.