getCentroids: Determine a polygon's centroid

View source: R/getCentroids.R

getCentroidsR Documentation

Determine a polygon's centroid

Description

Determine a polygon's centroid based on information stored in slot 'labpt'. Taken from http://linkedscience.org/tools/sparql-package-for-r/tutorial-part-ii-calculating-deforestation-per-state/.

Usage

getCentroids(spP)

Arguments

spP

SpatialPolygons or SpatialPolygonsDataFrame.

Value

A numeric matrix of x and y coordinates.

Author(s)

Florian Detsch

See Also

SpatialPolygons, SpatialPolygonsDataFrame


environmentalinformatics-marburg/Rsenal documentation built on July 28, 2023, 6:09 a.m.