Re: [R-sig-Geo] construct neighbor list from polygon list with user defined distance thresholds, as found in GeoDa?

2008-01-12 Thread Takatsugu Kobayashi
Also, look at this thread: https://stat.ethz.ch/pipermail/r-sig-geo/2005-July/000502.html Debarchana Ghosh wrote: > Hi, > > After reading a ESRI shape file I want to create a neighbor list (class nb) > from the polygon list by defining a distance thresholds for example 2500m. > This is a option i

Re: [R-sig-Geo] construct neighbor list from polygon list with user defined distance thresholds, as found in GeoDa?

2008-01-12 Thread Takatsugu Kobayashi
?dnearneigh in spdep package is the one I can think of. Taka Debarchana Ghosh wrote: > Hi, > > After reading a ESRI shape file I want to create a neighbor list (class nb) > from the polygon list by defining a distance thresholds for example 2500m. > This is a option in GeoDa weights creation. How

Re: [R-sig-Geo] Creating another grid from n*n grid

2008-01-12 Thread Takatsugu Kobayashi
Hi, (As an exercise)I am trying to create a SpatialPolygons object from n*n grid. By reading the material (from vignette{'sp'), I managed to convert grid to polygons. Now I would like plot this polygons, and here is what I have done so far: Step1: Create a 9*9 grid n<-9 # number of cells in ea

Re: [R-sig-Geo] save polygon as a shape file

2008-01-12 Thread Roger Bivand
On Sat, 12 Jan 2008, stefan lhachimi wrote: > Hello, > > I loaded a .shp-file and used a subset command while converting it > into a polygon to eliminate certain regions: > > map.kreise<-readShapePoly("vg250krs",IDvar="KRS_ID",verbos=TRUE) > map.kreise.boden <-polygons(map.kreise)[x$BODENSEE==0]

[R-sig-Geo] save polygon as a shape file

2008-01-12 Thread stefan lhachimi
Hello, I loaded a .shp-file and used a subset command while converting it into a polygon to eliminate certain regions: map.kreise<-readShapePoly("vg250krs",IDvar="KRS_ID",verbos=TRUE) map.kreise.boden <-polygons(map.kreise)[x$BODENSEE==0] Now I want to save the new object map.kreise.boden as a s