If it is in an S4 slot then there should be an extraction function, possibly with an obvious name like coords(). Failing that you could offer the name of the package that you are using. Perhaps that would contain an example to be used for illustration.

--
David Winsemius


On Mar 21, 2009, at 8:33 AM, Enrico R. Crema wrote:

Dear List,

I'm trying to use different R packages for my Teaching Assistantship
classes. And I cam out to an (apparently) very simple problem. I would
like to retrieve the vertices coordinate of a SpatialPolygon data. I
know this is stored in the "coords" slot, but I can't get access to
it! I tried to coerce the SpatialPolygon into a data.frame but it
doesn't work. Want I want is just a list of x and y coordinates of my
polygon vertices without doing the workflow in GRASS!!!

______________________________________________
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.

Reply via email to