Re: [R] how to get points from SpatialPolygonsDataFrame

2008-02-04 Thread Roger Bivand
Takatsugu Kobayashi indiana.edu> writes: > > try > > tmp<- slot(ex_1.7.selected, 'polygons') > sub.tmp <- slot(tmp[[1]],'Polygons') > [EMAIL PROTECTED] > > will get you there. > > taka > > Jarek Jasiewicz wrote: > > Milton Cezar Ribeiro wrote: > > > >> Dear all, > >> > >> > >> grd <- Gri

Re: [R] how to get points from SpatialPolygonsDataFrame

2008-02-03 Thread Takatsugu Kobayashi
try tmp<- slot(ex_1.7.selected, 'polygons') sub.tmp <- slot(tmp[[1]],'Polygons') [EMAIL PROTECTED] will get you there. taka Jarek Jasiewicz wrote: > Milton Cezar Ribeiro wrote: > >> Dear all, >> >> I need to get all points for each polygons and save these points in a >> data.frame. I tryed

Re: [R] how to get points from SpatialPolygonsDataFrame

2008-02-03 Thread Jarek Jasiewicz
Milton Cezar Ribeiro wrote: > Dear all, > > I need to get all points for each polygons and save these points in a > data.frame. I tryed to use the slot() function, but I can´t access the > "coords". > > grd <- GridTopology(c(1,1), c(1,1), c(10,10)) > polys <- as.SpatialPolygons.GridTopology(grd