<div dir="ltr">Joseph, <div>The merge in ArcGIS is actually the similar to sp::rbind as Barry pointed out. You probably want 'union'. rgeos has gUnion, and sptools (on R-Forge) has 'union' and other functions that extend rgeos by adding attribute table handling.</div>
<div>Robert</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 1, 2013 at 6:35 AM, Joseph Bechara <span dir="ltr"><<a href="mailto:jbechara@lri-lb.org" target="_blank">jbechara@lri-lb.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks Roman, <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> I know the rgeos package but I’m not able to identify which tools can replace the merge of ArcGIS.<u></u><u></u></span></p>
<div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">JOSEPH BECHARA<u></u><u></u></span></b></p><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Wildfire Management Program Coordinator<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Ashrafieh 1020 Building, 8<sup>th</sup> floor, Mathaf, Beirut, Lebanon</span><b><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Tel.: +961 (1) 426630-1-2<u></u><u></u></span></p><p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Fax: <a href="tel:%2B961%20%281%29%20426631" value="+9611426631" target="_blank">+961 (1) 426631</a><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Mail: </span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="mailto:jbejjani@lri-lb.org" target="_blank"><span lang="FR" style="font-family:"Verdana","sans-serif";color:#7f7f7f">jbechara@lri-lb.org</span></a></span><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.lri-lb.org/" target="_blank"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">www.lri-lb.org</span></a></span><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f"><u></u><u></u></span></p>
<p class="MsoNormal"><a name="141743b8fd3120ff__GoBack"></a><span style="font-family:"Calibri","sans-serif";color:#1f497d"><img border="0" width="200" height="139" src="cid:image001.jpg@01CEBEC4.3B7E8D60" alt="Description: Description: LRI-logo-Email"></span><span style="font-family:"Cambria","serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
</div><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:romunov@gmail.com" target="_blank">romunov@gmail.com</a> [mailto:<a href="mailto:romunov@gmail.com" target="_blank">romunov@gmail.com</a>] <b>On Behalf Of </b>Roman Luštrik<br>
<b>Sent:</b> Tuesday, October 01, 2013 4:32 PM<br><b>To:</b> Joseph Bechara<br><b>Cc:</b> R-sig-geo mailing list</span></p><div class="im"><br><b>Subject:</b> Re: [R-sig-Geo] merge Shape file<u></u><u></u></div><p></p><p class="MsoNormal">
<u></u> <u></u></p><div><p class="MsoNormal">I think you want the `rgeos` package that offers a plethora of functions to work with "features".<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div>
<div><p class="MsoNormal">Cheers,<u></u><u></u></p></div><div><p class="MsoNormal">Roman<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
<u></u> <u></u></p><div><div class="im"><p class="MsoNormal">On Tue, Oct 1, 2013 at 3:25 PM, Joseph Bechara <<a href="mailto:jbechara@lri-lb.org" target="_blank">jbechara@lri-lb.org</a>> wrote:<u></u><u></u></p></div>
<div><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Dear Bary, </span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Actually I have to do a geometrical merge operation.</span><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’m looking for the equivalent of “merge” in ArcGIS.</span><u></u><u></u></p>
<div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p><p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">JOSEPH BECHARA</span></b><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Wildfire Management Program Coordinator</span></b><u></u><u></u></p><p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Ashrafieh 1020 Building, 8<sup>th</sup> floor, Mathaf, Beirut, Lebanon</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Tel.: +961 (1) 426630-1-2</span><u></u><u></u></p><p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Fax: <a href="tel:%2B961%20%281%29%20426631" value="+9611426631" target="_blank">+961 (1) 426631</a></span><u></u><u></u></p>
<p class="MsoNormal"><span lang="FR" style="font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">Mail: </span><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="mailto:jbejjani@lri-lb.org" target="_blank"><span lang="FR" style="font-family:"Verdana","sans-serif";color:#7f7f7f">jbechara@lri-lb.org</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="http://www.lri-lb.org/" target="_blank"><span style="font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7f7f7f">www.lri-lb.org</span></a></span><u></u><u></u></p>
<p class="MsoNormal"><a name="141743b8fd3120ff_1417434f936118a8__GoBack"></a><u></u><u></u></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p></div><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:b.rowlingson@gmail.com" target="_blank">b.rowlingson@gmail.com</a> [mailto:<a href="mailto:b.rowlingson@gmail.com" target="_blank">b.rowlingson@gmail.com</a>] <b>On Behalf Of </b>Barry Rowlingson</span></p>
<div class="im"><br><b>Sent:</b> Tuesday, October 01, 2013 4:04 PM<br><b>To:</b> Joseph Bechara<br><b>Cc:</b> <a href="mailto:R-sig-Geo@r-project.org" target="_blank">R-sig-Geo@r-project.org</a><br><b>Subject:</b> Re: [R-sig-Geo] merge Shape file</div>
<u></u><u></u><p></p><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal"> <u></u><u></u></p><div><p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p><div><div class="im"><p class="MsoNormal">
On Tue, Oct 1, 2013 at 12:25 PM, Joseph Bechara <<a href="mailto:jbechara@lri-lb.org" target="_blank">jbechara@lri-lb.org</a>> wrote:<u></u><u></u></p></div><div><div><div class="im"><p class="MsoNormal">I’m looking for a function to merge 2 shapefiles keeping them as “spatialPolygonsDataframe” class.<u></u><u></u></p>
</div><p class="MsoNormal">Any clue?<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div></div><div class="im"><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
What do you mean by merge? If the two shapefiles have the same set of attributes then just read them into SpatialPolygonsDataFrames and do s12 = rbind(s1,s2), and you end up with a SPDF which has all the features from s1 and s2.<u></u><u></u></p>
</div></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Or do you want to do some geometrical merge operation?<u></u><u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Barry<u></u><u></u></p>
</div></div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div><div class="im"><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_______________________________________________<br>R-sig-Geo mailing list<br>
<a href="mailto:R-sig-Geo@r-project.org" target="_blank">R-sig-Geo@r-project.org</a><br><a href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a><u></u><u></u></p>
</div></div><div class="im"><p class="MsoNormal"><br><br clear="all"><u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">-- <br>In God we trust, all others bring data. <u></u><u></u></p>
</div></div></div></div><br>_______________________________________________<br>
R-sig-Geo mailing list<br>
<a href="mailto:R-sig-Geo@r-project.org">R-sig-Geo@r-project.org</a><br>
<a href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a><br>
<br></blockquote></div><br></div>