Re: [R-sig-Geo] How to list neighbors IDs and corresponding frequencies

2007-02-23 Thread Roger Bivand
On Fri, 23 Feb 2007, Takatsugu Kobayashi wrote: > Rusers: > > I am trying to compute a Moran's I coefficient for census tracts for > Indianapolis in R. I have a shapefile for Indianapolis and uploaded it > into R. I understand how to compute a Moran's I coefficient using knn2nb > command. How

Re: [R-sig-Geo] How to list neighbors IDs and corresponding frequencies

2007-02-23 Thread Takatsugu Kobayashi
Rusers: I am trying to compute a Moran's I coefficient for census tracts for Indianapolis in R. I have a shapefile for Indianapolis and uploaded it into R. I understand how to compute a Moran's I coefficient using knn2nb command. How can I compute a Moran's I based on a edge/border contiguity

Re: [R-sig-Geo] variogram on 3D points with gstat ?

2007-02-23 Thread Edzer J. Pebesma
Matthew, try library(gstat) demo(gstat3D) It doesn't use the sp classes, and in the next version it will be like this: # $Id: gstat3D.R,v 1.4 2006-02-10 19:05:02 edzer Exp $ # simple demo of 3D interpolation of 50 points with random normal values, # randomly located in the unit cube n <- 50 dat