Re: [R-sig-Geo] newbie: Moran's I

2006-11-03 Thread Roger Bivand
On Fri, 3 Nov 2006, Jeffrey Stratford wrote: > Hi. > > Does anyone have an example of estimating Moran's I from a file with > point (not polygon) data? I'm getting close(r) but I still have a few > problems. > > Here's my code so far: > > library(spdep) > ctpoints <- read.csv("c:\\Georgia\\xy.

[R-sig-Geo] newbie: Moran's I

2006-11-03 Thread Jeffrey Stratford
Hi. Does anyone have an example of estimating Moran's I from a file with point (not polygon) data? I'm getting close(r) but I still have a few problems. Here's my code so far: library(spdep) ctpoints <- read.csv("c:\\Georgia\\xy.csv", header=TRUE) # only two columns containing the long-lat data

Re: [R-sig-Geo] Getting the Shapefile package to work?

2006-11-03 Thread Roger Bivand
Replied to on R-help, but shapefiles has an undeclared dependence on foreign, which ought to have been made explicit properly in the package. Since read.dbf() in foreign is the shapelib function (and maptools and rgdal also use shapelib), this might suggest that using maptools or rgdal is a bett

[R-sig-Geo] Getting the Shapefile package to work?

2006-11-03 Thread Hvidberg, Martin
Dear list - Propoerly a beginner question, so bare with my frustration... I tried install the 'shapefiles' package into R 2.4.0 but it seems that the install had little effect... > install.packages(c("shapefiles")) --- Please select a CRAN mirror for use in t