Re: [R-sig-Geo] unique spatial polygons

2009-05-05 Thread Alina Sheyman
and for some reason I am still getting the error that I have non-unique id's eventhough i had deduped both of my files. Any idea why this would be happening? On Tue, May 5, 2009 at 10:16 AM, Alina Sheyman wrote: > > I'm still working on trying to combine two spatial files. &g

Re: [R-sig-Geo] unique spatial polygons

2009-05-05 Thread Alina Sheyman
llowing error message Error in spRbind(spRbind(zipmaps1b, zipmaps1a)) : error in evaluating the argument 'obj' in selecting a method for function 'spRbind' I'm not sure what else I need to specify in my spRbind command On Wed, Apr 29, 2009 at 12:32 PM, Roger Bivand

Re: [R-sig-Geo] unique spatial polygons

2009-04-29 Thread Alina Sheyman
Aslo, this function seems to wipe out my file zipmaps1a <- unionSpatialPolygons(zipmaps1, IDs=paste(zipmaps1$ZCTA, zipmaps1$NAME, sep = " ")) when I run names(zipmaps1a), after I run the above command I get NULL On Wed, Apr 29, 2009 at 12:11 PM, Alina Sheyman wrote: > U

Re: [R-sig-Geo] unique spatial polygons

2009-04-29 Thread Alina Sheyman
of data and Polygons IDs do not match How do I find out what field R is treating as Polygon ID, so that I can set my row.names to that? On Wed, Apr 29, 2009 at 2:42 AM, Roger Bivand wrote: > On Tue, 28 Apr 2009, Alina Sheyman wrote: > > I'm trying to combine two shapefiles using

[R-sig-Geo] unique spatial polygons

2009-04-28 Thread Alina Sheyman
I'm trying to combine two shapefiles using zipmaps5 <- spRbind(zipmaps1,zipmaps2) and getting the following error message Error in spRbind(as(obj, "SpatialPolygons"), as(x, "SpatialPolygons")) : non-unique polygon IDs Does anyone know how I can get rid of duplicate polygons in a shapefile? th

Re: [R-sig-Geo] creating polygons

2009-04-23 Thread Alina Sheyman
ng it that unionSpatialPolygons functions works very much in the same way as merge, except with geographical data. Am I wrong in this assumption? On Wed, Apr 22, 2009 at 3:09 AM, Roger Bivand wrote: > On Tue, 21 Apr 2009, Alina Sheyman wrote: > > Hi Roger, >> > > Alina, &

Re: [R-sig-Geo] creating polygons

2009-04-21 Thread Alina Sheyman
d there are potentially many ways to > do it. > > One way to get started would be to follow the example(s) in the help page > for the overlay() function in the sp package. > > -Don > > > At 1:26 PM -0400 4/20/09, Alina Sheyman wrote: > >> I have a list of made

[R-sig-Geo] creating polygons

2009-04-20 Thread Alina Sheyman
I have a list of made-up districts and corresponding zip codes. Based on that I want to define my own polygons (for each district) and then use them to create a map. Does anyone know how I would go about defining these? thank you [[alternative HTML version deleted]]

[R-sig-Geo] Europe zip code shapefiles

2009-04-07 Thread Alina Sheyman
Hi all, I'm looking for zip code shapefiles for Italy and France. Has anyone come across these by any chance? thank you! [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman

[R-sig-Geo] shape file for Boston

2009-03-09 Thread Alina Sheyman
Does anyone know where I can find a shapefile with zipcodes for Boston [[alternative HTML version deleted]] ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] mapping by zip codes

2009-03-05 Thread Alina Sheyman
"x" and "y" > coordinates(meuse) = ~x+y # SpatialPointsDataFrame > > Then you can use overlay() to find out in which customer is in which > polygon. Then you can count the number of customers per zip code. > > cheers, > Paul > > Alina Sheyman schreef: &

[R-sig-Geo] mapping by zip codes

2009-03-03 Thread Alina Sheyman
I'm very new to creating maps using shapefiles, so this question might be pretty basic. I'm trying to create a map of the US, divided up by zip codes, where i then map number of customers by zip code. I located shapefiles for US with zip codes (although at this point only for individual states, an