<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dear Bary, <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></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.<o:p></o:p></span></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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7F7F7F'>JOSEPH BECHARA<o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Verdana","sans-serif";color:#7F7F7F'>Wildfire Management Program Coordinator<o:p></o:p></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'><o:p></o:p></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<o:p></o:p></span></p><p class=MsoNormal><span lang=FR style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#7F7F7F'>Fax: +961 (1) 426631<o:p></o:p></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"><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'><o:p></o:p></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/"><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'><o:p></o:p></span></p><p class=MsoNormal><a name="_GoBack"></a><span style='font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=200 height=139 id="Picture_x0020_1" src="cid:image001.jpg@01CEBEC2.B82B2050" alt="Description: Description: LRI-logo-Email"></span><span style='font-family:"Cambria","serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><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"'> b.rowlingson@gmail.com [mailto:b.rowlingson@gmail.com] <b>On Behalf Of </b>Barry Rowlingson<br><b>Sent:</b> Tuesday, October 01, 2013 4:04 PM<br><b>To:</b> Joseph Bechara<br><b>Cc:</b> R-sig-Geo@r-project.org<br><b>Subject:</b> Re: [R-sig-Geo] merge Shape file<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><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:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’m looking for a function to merge 2 shapefiles keeping them as “spatialPolygonsDataframe” class.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Any clue?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></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.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Or do you want to do some geometrical merge operation?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'>Barry<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></div></div></body></html>