I suggest you simplify your computing task by making this into three distinct tasks:
1. get copies of the shapefiles on your computer. Do this outside of R. Since this has two parts, i.e., downloading and unzipping, it will be easier at first to do it outside of r. Then later you can figure out how to do it using R if necessary. 2. figure out how to load shapefiles into R (the key package is rgdal) 3. figure out how to reshape a shapefile in R (I don't know what you mean by reshape a shape file). For steps 2 and 3, ask further questions on r-sig-geo Are you aware that a "shapefile" is actually several files, all with the same prefix but different suffixes? I'd suggest putting them in a subdirectory of your working directory. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 10/17/16, 8:42 AM, "R-help on behalf of g.maub...@weinwolf.de" <r-help-boun...@r-project.org on behalf of g.maub...@weinwolf.de> wrote: >Hi All, > >I need to reshape an ESRI shape file: http://arnulf.us/PLZ and resp >http://www.metaspatial.net/download/plz.tar.gz > >I found an instruction for T-SQL Server: > >https://blog.oraylis.de/2010/05/german-map-spatial-data-for-plz-postal-cod >e-regions/ > >How can I do this using R? > >Kind regards > >Georg > >-- cut -- >Here's my code so far: > >download.file( > url = "http://www.metaspatial.net/download/plz.tar.gz", > destfile = "C:/temp/plz.tar.gz") > >untar(tarfile = "C:/temp/plz.tar.gz", > exdir = "C:/temp", > compressed = "gzip") > >______________________________________________ >R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.