Skip to content
Prev 9040 / 29559 Next

Moran's I based on ZIP Code data

On Fri, 20 Aug 2010, Michael Haenlein wrote:

            
Combine the imported SpatialPolygonsDataFrames, possibly after filtering 
out the ones with no hits, and possibly after checking for ZIP uniqueness. 
If not unique (if a ZIP crosses a state boundary or if the input maps 
assign a single ZIP code to multiple Polygons objects) use 
unionSpatialPolygons in maptools (usual warning about gpclib) or 
gUnionCascade() in rgeos. If you can install rgeos, you can also speed up 
the poly2nb() step for the whole map by providing a GEOS-generated list of 
candidate neighbours.

It is feasible, but perhaps tedious - there are a lot of polygons!

Good luck!

Roger