areaSDF: Areas of elements of SpatialDataFrame objects

Description Usage Arguments Value Author(s) Examples

View source: R/areaSDF.R

Description

Returns the areas of all elements in a SpatialDataFrame object, e.g. of all grid cells in a SpatialPixelsDataFrame or of all Polygons in a SpatialPolygonsDataFrame. If the elements are Points, 0s are returned with a warning.

Usage

1

Arguments

x

SpatialDataFrame-class

Value

Vector of the areas of elements of the SpatialDataFrame (same length as the SpatialDataFrame):
SpatialIndexDataFrame, SpatialPointsDataFrame: 0s, with warning.
SpatialPixelsDataFrame, SpatialGridDataFrame: cell size, repeated for each cell
SpatialPolygridDataFrame: sum of cell sizes of all cells related to the respective index value
SpatialPolygonsDataFrame: sum of area of all polygons related to the respective Polygons object
SpatialLinesDataFrame: sum of length of lines related to the respective Lines object

Author(s)

Kristina B. Helle, kristina.helle@uni-muenster.de

Examples

1
2
3
4
5
6
7
8

sensors4plumes documentation built on May 1, 2019, 10:27 p.m.