<div dir="auto"><div dir="auto">Deve funcionar</div><div dir="auto"><br></div><div>with(Banco, difftime(data_hoje,datanasc)/365)<br><div class="gmail_extra"><br><div class="gmail_quote">Em 31/03/2017 2:52 PM, "Leonardo Aguirre via R-br" <<a href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> escreveu:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Vc executou attach(Banco)?<div>Ou então faz referencia ao campo precedido de Banco$</div><div><br></div><div>Abs,</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div class="elided-text">Em 31 de março de 2017 14:47, Edmar Caldas via R-br <span dir="ltr"><<a href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>></span> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="elided-text"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><span id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13635">Pessoal outra duvida.</span></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><span><br></span></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><span id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13643">Criei uma variável data_hoje no meu data.frame - segue comando: </span><font color="#cd232c">Banco$data_hoje <-c(Sys.Date())</font> funcionou. Está na ultima linha da tabela. Agora quero a diferença entre: data_hoje - datanasc.</div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><img class="m_-3585269030154955665m_7906440841609265529ymail-preserve-class m_-3585269030154955665m_7906440841609265529inline-image-guid-82de0b54-0216-83f9-5785-ae8d0c256670 m_-3585269030154955665m_7906440841609265529rte-inline-saved-image" src="cid:1e2aacef-e454-5ebc-1535-d8f499d3e408@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:478px;max-height:35px" id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_16803"><br><br><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr">está com esse erro. data_hoje not found ????????????</div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><br></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612" dir="ltr"><img class="m_-3585269030154955665m_7906440841609265529ymail-preserve-class m_-3585269030154955665m_7906440841609265529inline-image-guid-eeb146b8-a2a7-f23a-6508-7b1686ec8c2f m_-3585269030154955665m_7906440841609265529rte-inline-saved-image" src="cid:f13be7eb-5b19-3a8f-fd02-eab7d73f6e0b@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:605px;max-height:211px" id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13710"><span class="m_-3585269030154955665HOEnZb"><font color="#888888"><br id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13711"><br></font></span></div><span class="m_-3585269030154955665HOEnZb"><font color="#888888"><div></div><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13644"> </div><div class="m_-3585269030154955665m_7906440841609265529signature" id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13976"><div id="m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13975"><font color="#0000ff">Edmar</font></div></div></font></span></div></div><br></div>______________________________<wbr>_________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/cgi<wbr>-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-g<wbr>uia</a>) e forneça código mínimo reproduzível.<font color="#888888"><br></font></blockquote></div><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-3585269030154955665gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px;margin-bottom:10px"><div style="margin-bottom:10px"><b>Leonardo Aguirre</b> <br></div><div style="margin-bottom:10px"><a href="tel:+55%2061%2098133-8373" value="+5561981338373" target="_blank">+55 (61) 98133-8373</a><br></div><div></div><div></div><div><a href="mailto:leoaguirre32@gmail.com" style="background-color:transparent;color:rgb(25,62,230);text-decoration:none" target="_blank">leoaguirre32@gmail.com</a></div><div></div><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;margin-top:10px;max-width:400px;font-size:8pt;font-family:tahoma;color:rgb(0,0,0)"><tbody><tr><td style="padding:0px 3px 3px 0px"><a href="https://facebook.com/leoaguirre32" style="background-color:transparent;color:rgb(143,182,201);text-decoration:none;display:inline-block" target="_blank"><img width="26" height="26" src="https://signature-assets.s3.amazonaws.com/1444da01693d1551f2eb966dfd6f0e2b.png" alt="Facebook" style="border:none;vertical-align:middle"></a></td><td style="padding:0px 3px 3px 0px"><a href="https://linkedin.com/in/leonardo-aguirre-1965a660" style="background-color:transparent;color:rgb(143,182,201);text-decoration:none;display:inline-block" target="_blank"><img width="26" height="26" src="https://signature-assets.s3.amazonaws.com/04b8388b61361b3a9d2cb06a5961feac.png" alt="LinkedIn" style="border:none;vertical-align:middle"></a></td></tr></tbody></table></div></div></div>
</font></div>
<br>______________________________<wbr>_________________<br>
R-br mailing list<br>
<a 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" rel="noreferrer" target="_blank">https://listas.inf.ufpr.br/<wbr>cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" rel="noreferrer" target="_blank">http://www.leg.ufpr.br/r-br-<wbr>guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br></div></div></div>