I think that Daniel is correct, and that you are mistaking the console representation from the internal one - try ?print and look at the digits= option. In general, note that get.Pcent() is not currently used, and coordinates() of a SpatialPolygonsDataFrame object read in using, for example, readShapeSpatial() in maptools will return centroids for (multi)-polygon objects. You might have got more response on the R-sig-geo list.
Roger Daniel Malter wrote: > > Not knowing the package or the function. Could the round() function help > you? Or do you mean decimals shown in a plot? > > Best, > Daniel > > ------------------------- > cuncta stricte discussurus > ------------------------- > > -----Ursprüngliche Nachricht----- > Von: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Im > Auftrag von Herbert Rantus > Gesendet: Wednesday, August 05, 2009 12:08 PM > An: r-help@r-project.org > Betreff: [R] polygon centroids > > Hi Everyone, > > Concerning the maptools package and get.Pcent() to get polygon centroids, > does somebody know how to define the number of returned decimal places? > > Thanks a lot in advance. > > Herbert > > > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > > -- View this message in context: http://www.nabble.com/polygon-centroids-tp24831663p24878040.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.