<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div>Boa tarde Elerson,</div><div><br clear="none"></div><div>Envio no
corpo do texto e em anexo o script com uma forma de fazer isso. Foi
preciso converter os fatores em caracteres, mas eles podem ser
reconvertido ao final no novo dataframe se for necessário). </div><div><br clear="none"></div><div>####################<br clear="none"></div><div><br clear="none"></div><div># dataframeBase.csv = dataframe de exemplo<br clear="none"></div><div><i>var = read.csv("dataframeBase.csv",header=TRUE,sep=";")<br clear="none"><br clear="none">var<br clear="none"><br clear="none">x1 = as.character(var[,"intervalo1"])<br clear="none">x2 = as.character(var[,"intervalo2"])<br clear="none"><br clear="none">x1<br clear="none">x2<br clear="none"><br clear="none">intervalo3 = c(x1,x2)<br clear="none"><br clear="none">var2 = data.frame(matrix(intervalo3, ncol=1))<br clear="none">colnames(var2) = "intervalo3"<br clear="none"></i><div><br clear="none"></div><div># var2 = resultado final desejado<br clear="none"></div><div><i>var2</i></div><div><i><br clear="none"></i></div><div><i>####################<br clear="none"></i></div></div><div><br clear="none"></div><div>att,</div><div>Rodrigo<br clear="none"></div>
<div><br clear="none"></div></div>
<div><br></div><div><br></div>
<div id="yahoo_quoted_0680203645" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Em quinta-feira, 1 de março de 2018 21:30:37 BRT, Elerson via R-br <r-br@listas.c3sl.ufpr.br> escreveu:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv7749393027">
<div>
<p>Prezados,</p>
<p>Tenho este data frame:</p>
<p><br>
</p>
<p>
<style type="text/css">
#yiv7749393027 body, #yiv7749393027 div, #yiv7749393027 table, #yiv7749393027 thead, #yiv7749393027 tbody, #yiv7749393027 tfoot, #yiv7749393027 tr, #yiv7749393027 th, #yiv7749393027 td, #yiv7749393027 p {font-family:"Liberation Sans";font-size:x-small;}
#yiv7749393027 a.yiv7749393027comment-indicator:hover + comment {background:#ffd;display:block;border:1px solid black;padding:0.5em;}
#yiv7749393027 a.yiv7749393027comment-indicator {background:red;display:inline-block;border:1px solid black;width:0.5em;min-height:0.5em;}
#yiv7749393027 comment {display:none;}
</style> </p>
<table cellspacing="0" border="0">
<colgroup width="227"></colgroup> <colgroup width="85"></colgroup>
<tbody>
<tr>
<td height="17" align="left">intervalo1</td>
<td align="left">intervalo2</td>
</tr>
<tr>
<td height="17" align="left"> -10m -17d 0H 0M 0S</td>
<td align="left"> 1d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -5m -26d 0H 0M 0S</td>
<td align="left"> 2d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -5m -26d 0H 0M 0S</td>
<td align="left"> 2d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -12d 0H 0M 0S</td>
<td align="left"> 3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -3d 0H 0M 0S</td>
<td align="left"> 3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -1d 0H 0M 0S</td>
<td align="left"> 3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -1d 0H 0M 0S</td>
<td align="left"> 4d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -1d 0H 0M 0S</td>
<td align="left"> 4d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 0S</td>
<td align="left"> 4d 0H 0M 0S</td>
</tr>
</tbody>
</table>
<p><br>
</p>
<p>Quero criar um outro que junte estas duas variáveis em uma. Numa
terceira variavel no mesmo data frame ou em uma variavel noutro
datra frame.<br>
</p>
<p>
<style type="text/css">
#yiv7749393027 body, #yiv7749393027 div, #yiv7749393027 table, #yiv7749393027 thead, #yiv7749393027 tbody, #yiv7749393027 tfoot, #yiv7749393027 tr, #yiv7749393027 th, #yiv7749393027 td, #yiv7749393027 p {font-family:"Liberation Sans";font-size:x-small;}
#yiv7749393027 a.yiv7749393027comment-indicator:hover + comment {background:#ffd;display:block;border:1px solid black;padding:0.5em;}
#yiv7749393027 a.yiv7749393027comment-indicator {background:red;display:inline-block;border:1px solid black;width:0.5em;min-height:0.5em;}
#yiv7749393027 comment {display:none;}
</style> </p>
<table cellspacing="0" border="0">
<colgroup width="227"></colgroup> <tbody>
<tr>
<td height="17" align="left">intervalo3</td>
</tr>
<tr>
<td height="17" align="left"> -10m -17d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -5m -26d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -5m -26d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -12d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -1d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -1d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> -1d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 0S</td>
</tr>
<tr>
<td height="17" align="left"> 1d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 2d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 2d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 3d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 4d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 4d 0H 0M 0S</td>
</tr>
<tr>
<td height="17" align="left"> 4d 0H 0M 0S</td>
</tr>
</tbody>
</table>
<p>Agradeço a ajuda.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>
<style type="text/css">
#yiv7749393027 body, #yiv7749393027 div, #yiv7749393027 table, #yiv7749393027 thead, #yiv7749393027 tbody, #yiv7749393027 tfoot, #yiv7749393027 tr, #yiv7749393027 th, #yiv7749393027 td, #yiv7749393027 p {font-family:"Liberation Sans";font-size:x-small;}
#yiv7749393027 a.yiv7749393027comment-indicator:hover + comment {background:#ffd;display:block;border:1px solid black;padding:0.5em;}
#yiv7749393027 a.yiv7749393027comment-indicator {background:red;display:inline-block;border:1px solid black;width:0.5em;min-height:0.5em;}
#yiv7749393027 comment {display:none;}
</style></p>
</div>
</div>_______________________________________________<br>R-br mailing list<br><a ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forne�a c�digo m�nimo reproduz�vel.</div>
</div>
</div></div></body></html>