Re: [R-sig-Geo] Helping with write a function. Merging shape file with all fields?

2010-01-24 Thread Zia Ahmed
Thank you so much Matt! It works perfectly. This R-code saves lot of my of my time. I appreciate you help. Zia Matt Beard wrote: Zia, Does this work? Set your working directory and your output filename. library(rgdal) library(maptools) setwd("C:/test")

Re: [R-sig-Geo] Helping with write a function. Merging shape file with all fields?

2010-01-23 Thread Zia Ahmed
Thanks a lot! I will try accordingly. Thanks again Zia Matt Beard wrote: Zia, Does this work? Set your working directory and your output filename. library(rgdal) library(maptools) setwd("C:/test") # CHANGE THIS combinedShp <- "C:/test/combined.sh

Re: [R-sig-Geo] Helping with write a function. Merging shape file with all fields?

2010-01-23 Thread Matt Beard
Zia, Does this work? Set your working directory and your output filename. library(rgdal) library(maptools) setwd("C:/test") # CHANGE THIS combinedShp <- "C:/test/combined.shp" # CHANGE THIS # obtain shapefiles in current directory files <- l

Re: [R-sig-Geo] Helping with write a function. Merging shape file with all fields?

2010-01-23 Thread Sean O'Riordain
Hi Zia, I don't know whether it will work for you, but I was able to read in fairly boundary polygons (11k lines) and merge them using spRbind() Not sure if it's exactly what you want as I'm pretty much a beginner over here on r-sig-geo... cheers, Sean On Sat, Jan 23, 2010 at 3:45 AM, Zia Ahme

[R-sig-Geo] Helping with write a function. Merging shape file with all fields?

2010-01-22 Thread Zia Ahmed
Hi Matt: With help of Jim Holtman (my R Guru!), I am able to modified your code for selecting particular type of shape files from different folders and able to combine them together. Thank you so much! However, final polygon does not contain any filed (suppose county name, FIPS code etc