<div dir="ltr"><div>Coloque um código mínimo reproduzível (CMR) para podermos lhe ajudar efetivamente<br></div>Veja as regras de postagem da lista (<a target="_blank" rel="noreferrer" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-<wbr>guia</a>)<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">Em 31 de março de 2017 15:50, 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614"><span id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36958">Alguém sabe responder porque as variáveis data estão com simbolos com cores diferentes ???? será que o erro está aí???</span></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><span id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_37403">a variável que criei através do sys.date está em amarelo e a data que venho do excel em rosa??? <font color="#cd232c">Aparentemente funcionou.</font></span></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><span><br></span></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><span><br></span></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><img class="m_2638828424270640736ymail-preserve-class m_2638828424270640736inline-image-guid-aaca9282-53e7-0632-ab5e-bc096d4541db m_2638828424270640736rte-inline-saved-image" src="cid:0d7ff79b-f095-52ab-fc84-54836541c2a8@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:207px;max-height:163px" id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36948"><br id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36949"><br>Quando digito só a idade vem essa resposta</div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><br></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><img class="m_2638828424270640736ymail-preserve-class m_2638828424270640736inline-image-guid-ef7698e4-bab3-d015-3da2-d191aa11753d m_2638828424270640736rte-inline-saved-image" src="cid:174368f9-2cc3-ea50-5891-73bf2ede8403@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:631px;max-height:209px" id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_38432"><br><br></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614"><br></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr">agora quando peço a média, dá erro.</div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><br></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614" dir="ltr"><img class="m_2638828424270640736ymail-preserve-class m_2638828424270640736inline-image-guid-ecb55fe7-9b9a-c532-fe6e-2d9e716b22b3 m_2638828424270640736rte-inline-saved-image" src="cid:f069fffe-5f68-9499-e1ee-43347bf7dd11@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:148px;max-height:52px"><br><br></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614"><br></div><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36614"> </div><div class="m_2638828424270640736signature" id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36805"><div id="m_2638828424270640736yui_3_16_0_ym19_1_1490980983545_36804"><font color="#0000ff">Edmar</font></div></div> <div class="m_2638828424270640736qtdSeparateBR"><br><br></div><div class="m_2638828424270640736yahoo_quoted" style="display:block"> <div style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><span class=""> <div dir="ltr"><font size="2" face="Arial"> Em Sexta-feira, 31 de Março de 2017 15:10, Fernando Antonio de souza <<a href="mailto:nandodesouza@gmail.com" target="_blank">nandodesouza@gmail.com</a>> escreveu:<br></font></div> <br><br> </span><div class="m_2638828424270640736y_msg_container"><div id="m_2638828424270640736yiv8188312653"><div><div><div>Deve funcionar</div><div><br clear="none"></div><div>with(Banco, difftime(data_hoje,datanasc)/<wbr>365)<br clear="none"><div class="m_2638828424270640736yiv8188312653gmail_extra"><br clear="none"><div class="m_2638828424270640736yiv8188312653gmail_quote"><span class="">Em 31/03/2017 2:52 PM, "Leonardo Aguirre via R-br" <<a rel="nofollow" shape="rect" href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>> escreveu:<br clear="none"></span><blockquote class="m_2638828424270640736yiv8188312653quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Vc executou attach(Banco)?<div>Ou então faz referencia ao campo precedido de Banco$</div><div><br clear="none"></div><div>Abs,</div></div></span><div class="m_2638828424270640736yiv8188312653gmail_extra"><br clear="none"><div class="m_2638828424270640736yiv8188312653gmail_quote"><span class=""><div class="m_2638828424270640736yiv8188312653elided-text">Em 31 de março de 2017 14:47, Edmar Caldas via R-br <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:r-br@listas.c3sl.ufpr.br" target="_blank">r-br@listas.c3sl.ufpr.br</a>></span> escreveu:<br clear="none"></div></span><blockquote class="m_2638828424270640736yiv8188312653gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div class="m_2638828424270640736yiv8188312653elided-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_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><span id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13635">Pessoal outra duvida.</span></div><div id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><span><br clear="none"></span></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><span id="m_2638828424270640736yiv8188312653m_-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 dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><img class="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529ymail-preserve-class m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529inline-image-guid-82de0b54-0216-83f9-5785-ae8d0c256670 m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529rte-inline-saved-image" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_16803" src="cid:1e2aacef-e454-5ebc-1535-d8f499d3e408@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:478px;max-height:35px"><br clear="none"><br clear="none"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612">está com esse erro. data_hoje not found ????????????</div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><br clear="none"></div><div dir="ltr" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13612"><img class="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529ymail-preserve-class m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529inline-image-guid-eeb146b8-a2a7-f23a-6508-7b1686ec8c2f m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529rte-inline-saved-image" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13710" src="cid:f13be7eb-5b19-3a8f-fd02-eab7d73f6e0b@yahoo.com" alt="Alinhar imagem" style="width:100%;max-width:605px;max-height:211px"><span class="m_2638828424270640736yiv8188312653m_-3585269030154955665HOEnZb"><font color="#888888"><br id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13711" clear="none"><br clear="none"></font></span></div><span class="m_2638828424270640736yiv8188312653m_-3585269030154955665HOEnZb"><font color="#888888"></font></span><div></div><div id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13644"> </div><div class="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529signature" id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13976"><div id="m_2638828424270640736yiv8188312653m_-3585269030154955665m_7906440841609265529yui_3_16_0_ym19_1_1490980983545_13975"><font color="#0000ff">Edmar</font></div></div></div></div><br clear="none"></div>______________________________ _________________<br clear="none">
R-br mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br clear="none">
<a rel="nofollow" shape="rect" 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 clear="none"></span>
Leia o guia de postagem (<a rel="nofollow" shape="rect" href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-g uia</a>) e forneça código mínimo reproduzível.<font color="#888888"><br clear="none"></font></blockquote></div><span class=""><font color="#888888"><br clear="none"><br clear="all"></font><div><br clear="none"></div>-- <br clear="none"><div class="m_2638828424270640736yiv8188312653m_-3585269030154955665gmail_signature"><div dir="ltr"><div style="font-size:12.8px;margin-bottom:10px"><div style="margin-bottom:10px"><b>Leonardo Aguirre</b> <br clear="none"></div><div style="margin-bottom:10px"><a rel="nofollow" shape="rect">+55 (61) 98133-8373</a><br clear="none"></div><div></div><div></div><div><a rel="nofollow" shape="rect" 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 class="m_2638828424270640736yiv8188312653yqt4607195780" id="m_2638828424270640736yiv8188312653yqtfd32544"><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 colspan="1" rowspan="1" style="padding:0px 3px 3px 0px"><a rel="nofollow" shape="rect" href="https://facebook.com/leoaguirre32" style="background-color:transparent;color:rgb(143,182,201);text-decoration:none;display:inline-block" target="_blank"><img src="https://signature-assets.s3.amazonaws.com/1444da01693d1551f2eb966dfd6f0e2b.png" alt="Facebook" style="border:none;vertical-align:middle" width="26" height="26"></a></td><td colspan="1" rowspan="1" style="padding:0px 3px 3px 0px"><a rel="nofollow" shape="rect" 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 src="https://signature-assets.s3.amazonaws.com/04b8388b61361b3a9d2cb06a5961feac.png" alt="LinkedIn" style="border:none;vertical-align:middle" width="26" height="26"></a></td></tr></tbody></table></div></div></div></div><div class="m_2638828424270640736yiv8188312653yqt4607195780" id="m_2638828424270640736yiv8188312653yqtfd86750">
</div></span></div><div class="m_2638828424270640736yiv8188312653yqt4607195780" id="m_2638828424270640736yiv8188312653yqtfd62402">
<br clear="none">______________________________ _________________<span class=""><br clear="none">
R-br mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:R-br@listas.c3sl.ufpr.br" target="_blank">R-br@listas.c3sl.ufpr.br</a><br clear="none">
<a rel="nofollow" shape="rect" 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 clear="none"></span>
Leia o guia de postagem (<a rel="nofollow" shape="rect" 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.<br clear="none"></div></blockquote></div><div class="m_2638828424270640736yiv8188312653yqt4607195780" id="m_2638828424270640736yiv8188312653yqtfd03643"><br clear="none"></div></div></div></div></div></div><br><br></div> </div> </div> </div></div></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><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span>=========================================<br>
Fernando Souza<br>
Zootecnista, DSc. Produção e Alimentação Animal<br>
Celular: (31)99796-8781 (Vivo)<br>
<a href="mailto:e-mail%3Anandodesouza@gmail.com" target="_blank">E-mail:nandodesouza@gmail.com</a><br>
Lattes: <a href="http://lattes.cnpq.br/6519538815038307" target="_blank">http://lattes.cnpq.br/6519538815038307</a><br>
Blog: <a href="https://producaoanimalcomr.wordpress.com/" target="_blank">https://producaoanimalcomr.wordpress.com/</a><br>
==========================================</span></div></div></div></div></div></div></div></div></div></div>
</div>