[R-sig-Geo] calculate geometric mean of mass of points

G. Allegri giohappy at gmail.com
Wed Nov 19 22:13:39 CET 2008


>  The maptools package has a function for computing the centroids of
> polygons - install that and try help.search("centroid").

x <- read.shape(system.file("shapes/sids.shp", package="maptools")
mycentroid <- get.Pcent(x)




More information about the R-sig-Geo mailing list