centroid: centroid

Description Usage Arguments Details Value Author(s) Examples

View source: R/gravsub.R

Description

calculate the centroid of a polygon

Usage

1

Arguments

p

list: x,y

Details

same code as centroid.polygon

Value

vector x, y

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

Examples

1
2
3
4
L=list()
L$x=c( 0.2188,-0.6668,-1.0992,-0.5105, 0.5106)
L$y=c( 0.76822, 0.75292,-0.01741,-0.74692,-0.48165)
centroid(L)

geophys documentation built on May 29, 2017, 3:05 p.m.

Search within the geophys package
Search all R packages, documentation and source code