Hi Everyone:

 

I am trying to get the centroids of all the polygons in the shape file. 

 

I use the following code:

 

library(spdep)

library(maptools)

cte <- readShapePoly("cte2007.shp",IDvar=NULL)

get.Pcent(cte)

 

But there is an error when I run get.Pcent (Error: could not find function
"get.Pcent")

 

My R version is 2.12.2

 

Anybody knows why the function doesn't work?

 

Thanks

 

Robert


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to