<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1491241707702_11325"><span id="yui_3_16_0_ym19_1_1491241707702_11352">Boa Tarde!</span></div><div id="yui_3_16_0_ym19_1_1491241707702_11325"><span><br></span></div><div id="yui_3_16_0_ym19_1_1491241707702_11325"><span id="yui_3_16_0_ym19_1_1491241707702_11354">Tenho uma dúvida, nesse código a variável idade <b id="yui_3_16_0_ym19_1_1491241707702_11497"><font color="#cd232c" id="yui_3_16_0_ym19_1_1491241707702_11552">não é pra ter dígitos. como faço pra tirar isso?</font></b></span></div><div id="yui_3_16_0_ym19_1_1491241707702_11325"><span><b><font color="#ffffff"><br></font></b></span></div><div id="yui_3_16_0_ym19_1_1491241707702_11325"><span id="yui_3_16_0_ym19_1_1491241707702_11762"><b id="yui_3_16_0_ym19_1_1491241707702_11760"><br id="yui_3_16_0_ym19_1_1491241707702_11759"></b></span></div><div id="yui_3_16_0_ym19_1_1491241707702_11666"><font id="yui_3_16_0_ym19_1_1491241707702_11667"><b id="yui_3_16_0_ym19_1_1491241707702_11668"># Chamando o arquivo</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11669"><font id="yui_3_16_0_ym19_1_1491241707702_11670"><b id="yui_3_16_0_ym19_1_1491241707702_11671">cadastro_funcionario</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11672"><font id="yui_3_16_0_ym19_1_1491241707702_11673"><b id="yui_3_16_0_ym19_1_1491241707702_11674"><br id="yui_3_16_0_ym19_1_1491241707702_11675"></b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11676"><font id="yui_3_16_0_ym19_1_1491241707702_11677"><b id="yui_3_16_0_ym19_1_1491241707702_11678"><br id="yui_3_16_0_ym19_1_1491241707702_11679"></b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11680"><font id="yui_3_16_0_ym19_1_1491241707702_11681"><b id="yui_3_16_0_ym19_1_1491241707702_11682">data_atual <- as.Date ("2017-04-03")</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11683"><font id="yui_3_16_0_ym19_1_1491241707702_11684"><b id="yui_3_16_0_ym19_1_1491241707702_11685">data_atual</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11686"><font id="yui_3_16_0_ym19_1_1491241707702_11687"><b id="yui_3_16_0_ym19_1_1491241707702_11688"><br id="yui_3_16_0_ym19_1_1491241707702_11689"></b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11690"><font id="yui_3_16_0_ym19_1_1491241707702_11691"><b id="yui_3_16_0_ym19_1_1491241707702_11692">cadastro_funcionario$data_atual <- c(data_atual)</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11693"><font id="yui_3_16_0_ym19_1_1491241707702_11694"><b id="yui_3_16_0_ym19_1_1491241707702_11695">cadastro_funcionario</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11696"><font id="yui_3_16_0_ym19_1_1491241707702_11697"><b id="yui_3_16_0_ym19_1_1491241707702_11698"><br id="yui_3_16_0_ym19_1_1491241707702_11699"></b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11700"><font id="yui_3_16_0_ym19_1_1491241707702_11701"><b id="yui_3_16_0_ym19_1_1491241707702_11702">idade <-difftime(data_atual,datanasc)/365.25</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11703"><font id="yui_3_16_0_ym19_1_1491241707702_11704"><b id="yui_3_16_0_ym19_1_1491241707702_11705">round(idade, digits = 0)</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11706"><font id="yui_3_16_0_ym19_1_1491241707702_11707"><b id="yui_3_16_0_ym19_1_1491241707702_11708"><br id="yui_3_16_0_ym19_1_1491241707702_11709"></b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11710"><font id="yui_3_16_0_ym19_1_1491241707702_11711"><b id="yui_3_16_0_ym19_1_1491241707702_11712"><br id="yui_3_16_0_ym19_1_1491241707702_11713"></b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11714"><font id="yui_3_16_0_ym19_1_1491241707702_11715"><b id="yui_3_16_0_ym19_1_1491241707702_11716">cadastro_funcionario$idade <-c(idade)</b></font></div><div id="yui_3_16_0_ym19_1_1491241707702_11325" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1491241707702_11325" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1491241707702_11325" dir="ltr">resultado</div><div id="yui_3_16_0_ym19_1_1491241707702_11325" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1491241707702_11325" dir="ltr"><img class="ymail-preserve-class inline-image-guid-88a68361-00e9-7ffe-b8d9-afebbb525182 rte-inline-saved-image" src="cid:d9c50238-a548-56f0-d9ad-85851bb5f513@yahoo.com" data-id="inline-image-guid-88a68361-00e9-7ffe-b8d9-afebbb525182" alt="Alinhar imagem" style="width:100%;max-width:65px;max-height:207px;"><br><br></div><div></div><div id="yui_3_16_0_ym19_1_1491241707702_11326"> </div><div class="signature" id="yui_3_16_0_ym19_1_1491241707702_11358"><div id="yui_3_16_0_ym19_1_1491241707702_11357"><font color="#0000ff">Edmar</font></div></div></div></body></html>