[R-sig-Geo] spautolm in Spdep

2007-08-09 Thread Kitty Lee
Hi. I'm trying to run spatial conditional autoregression (spautolm) in SPDEP. My command is simply: spautolm(vote~income, listw=listw5) Listw5 is a weight matrix made up by nearest 5 neighbors. I have 22000 cases. However, the command could not run and I got the following message: Error: canno

Re: [R-sig-Geo] Error with SpatialPoints to PPP conversion

2007-08-09 Thread Roger Bivand
On Thu, 9 Aug 2007, Andrew Niccolai wrote: > Greetings all, > > I recently upgraded from R-2.4.1 to R-2.5.1 on Windows XP OS. Now when I > run my application (literally thousands of lines of code), I crash whenever > I had code using the names() function. The error message is the following: > >

[R-sig-Geo] Error with SpatialPoints to PPP conversion

2007-08-09 Thread Andrew Niccolai
Greetings all, I recently upgraded from R-2.4.1 to R-2.5.1 on Windows XP OS. Now when I run my application (literally thousands of lines of code), I crash whenever I had code using the names() function. The error message is the following: Error in names(argue) : no applicable method for "names"

Re: [R-sig-Geo] Coordinate/grid for ncdf data

2007-08-09 Thread David Pierce
Hello, the reason you are getting that error from the ncdf package is because you have defined variable "Radon" to be a *two* dimensional array in the netcdf file. The number of entries in dimension 1 is length(long) = 10573, and the number of entries in dimension 2 is length(lat) = 10573. So, t

Re: [R-sig-Geo] R-sig-Geo Digest, Vol 48, Issue 3

2007-08-09 Thread Roger Bivand
On Fri, 3 Aug 2007, Hisaji ONO wrote: > Dear Marco > > Thank you very much for your info. Dear Hisaji, Would Mondrian http://rosuda.org/Mondrian/ be of any use? The maptools package contains a function for exporting SpatialPolygonsDataFrame objects for (older) Mondrian, and will support the re

Re: [R-sig-Geo] spplot with Spatial classes, not DataFrame

2007-08-09 Thread Roger Bivand
On Thu, 9 Aug 2007, Felix Andrews wrote: > Hi again... > > I like spplot (in sp package), but I would like to able to plot > simpler types like SpatialPolygons, SpatialPoints, etc. Even Polygons. > And a default method could plot points using xy.coords. I do not see > why a data.frame must be atta

Re: [R-sig-Geo] spgpc package?

2007-08-09 Thread Roger Bivand
On Thu, 9 Aug 2007, Felix Andrews wrote: e.g. # x is a gpc.poly object as.Polygons.gpc.poly <- function(x, ID) { thisPolys <- lapply(get.pts(x), function(p) { Polygon(rbind(as.matrix(cbind(p$x,p$y)),c(p$x[1],p$y[1])), hole=p$hole) })

[R-sig-Geo] spplot with Spatial classes, not DataFrame

2007-08-09 Thread Felix Andrews
Hi again... I like spplot (in sp package), but I would like to able to plot simpler types like SpatialPolygons, SpatialPoints, etc. Even Polygons. And a default method could plot points using xy.coords. I do not see why a data.frame must be attached, it might not be relevant: > showMethods(spplot