<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1420249077115_4754" dir="ltr">Valeu Marcus, funcionou, não sei o que estava errado.</div><div></div><div id="yui_3_16_0_1_1420249077115_5040"> </div><div id="yui_3_16_0_1_1420249077115_5040" dir="ltr">Valeu!!!</div><div id="yui_3_16_0_1_1420249077115_5040" dir="ltr">[ ]'s</div><div id="yui_3_16_0_1_1420249077115_5042"><div id="yui_3_16_0_1_1420249077115_5041">Edson Lira<br>Estatístico<br>Manaus-Amazonas</div></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> Em Sexta-feira, 2 de Janeiro de 2015 20:32, Marcus Nunes <marcus.nunes@gmail.com> escreveu:<br> </font> </div> <br><br> <div class="y_msg_container"><div id="yiv6462533193"><div><div dir="ltr">Edson,<div><br clear="none"></div><div>Se entendi corretamente o teu pedido, o que tu deseja fazer está no código abaixo. Rodei o código no Mac OS 10.10.1 e R 3.1.1</div><div><br clear="none"></div><div>Abs,</div><div><br clear="none"></div><div><font face="monospace, monospace">######</font></div><div><br clear="none"></div><div><div><div><font face="monospace, monospace">rm(list = ls())</font></div><div><font face="monospace, monospace"><br clear="none"></font></div><div><font face="monospace, monospace">require(ff)</font></div><div><font face="monospace, monospace">cb <- read.csv2("~/Desktop/TESTE_DATA.csv") </font></div><div><font face="monospace, monospace">cb[cb==""] <- NA</font></div><div><font face="monospace, monospace"><br clear="none"></font></div><div><font face="monospace, monospace">#cb$chega<-format(as.Date(cb$ARRIVAL, format="%d/%b/%Y"))</font></div><div><font face="monospace, monospace">cb$chega <- as.Date(cb$ARRIVAL,"%d/%m/%Y")</font></div><div><font face="monospace, monospace"><br clear="none"></font></div><div><font face="monospace, monospace">cb$ent_ano <- format(cb$chega, "%Y") # ano</font></div><div><font face="monospace, monospace">cb$ent_mes <- format(cb$chega, "%m") # ano</font></div><div><font face="monospace, monospace">cb$ent_dia <- format(cb$chega, "%d") # ano</font></div></div></div></div><div class="yiv6462533193gmail_extra"><br clear="none"><div class="yiv6462533193gmail_quote">2015-01-02 21:53 GMT-02:00 Edson Lira <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:edinhoestat@yahoo.com.br" target="_blank" href="mailto:edinhoestat@yahoo.com.br">edinhoestat@yahoo.com.br</a>></span>:<br clear="none"><blockquote class="yiv6462533193gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv6462533193yqt5214538461" id="yiv6462533193yqt78338"><div><div style="color:#000;background-color:#fff;font-family:lucida console, sans-serif;font-size:16px;"><div dir="ltr">Estou com problemas na conversão de datas. Quero separar dia, mês e ano. </div><div dir="ltr"><br clear="none"></div><div dir="ltr">Abaixo o link de uma amostra dos dados com as variáveis de datas </div><div dir="ltr"></div><div dir="ltr"><br clear="none"></div><div dir="ltr"><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/6853a3bf">Download TESTE DATA.csv</a><br clear="none"></div><div style="width:450px;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px;margin-bottom:5px;background-color:#ffffff;"><table cellspacing="0" cellpadding="0" border="0" style="width:450px;height:170px;display:block;"><tbody><tr><td colspan="8" rowspan="1" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;"> </div></td></tr><tr><td colspan="1" rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td><td colspan="1" rowspan="5" style="vertical-align:middle;width:168px;height:168px;background-color:#000000;border-collapse:collapse;"><div align="center" style="width:168px;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/6853a3bf" style="text-decoration:none!important;color:#000000!important;"><img alt="image" src="http://img.datafilehost.com/download.png" width="168" height="52" style="display:block;margin:auto;" data-id="ed2faa4b-b290-711d-455e-074a1d644613"></a></div></td><td colspan="1" rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:0pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td><td colspan="1" rowspan="5" style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="width:14px;background-color:#ffffff;font-size:14pt;"> </div></td><td colspan="2" rowspan="1" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:6px;background-color:#ffffff;font-size:6pt;"> </div></td><td colspan="1" rowspan="5" style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="width:20px;background-color:#ffffff;font-size:20pt;"> </div></td><td colspan="1" rowspan="5" width="1" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td></tr><tr><td colspan="2" rowspan="1" style="width:100%;vertical-align:middle;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';"><div style="line-height:16.5px;background-color:#ffffff;min-height:135px;width:245px;"><div style="word-wrap:break-word;"><span></span><span></span><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/6853a3bf" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block;"><span style="margin:0;font-weight:normal;margin-bottom:3px;font-size:18px;line-height:21px;max-height:43px;color:#000000;overflow:hidden!important;display:inline-block;">Download TESTE DATA.csv</span></a><div style="font-size:13px;line-height:20px;color:#999999;max-height:81px;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';overflow:hidden;">Download TESTE DATA.csv free. File hosted free by DataFileHost.</div></div></div></td></tr><tr><td colspan="2" rowspan="1" style="height:4px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:4px;background-color:#ffffff;font-size:4pt;"></div></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align:middle;font-family:'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div style="font-size:0pt;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/6853a3bf" style="color:black;text-decoration:none!important;"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow:hidden;max-height:13px;"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Visualizar em <span style="font-weight:bold;">www.datafilehost...</span></span></span></a></div></td><td colspan="1" rowspan="1" style="vertical-align:middle;width:100px;font-family:'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Visualizado por Yahoo</span></div></td></tr><tr><td colspan="2" rowspan="1" style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:9px;background-color:#ffffff;font-size:9pt;"></div></td></tr><tr><td colspan="8" rowspan="1" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;"> </div></td></tr></tbody></table></div><div dir="ltr"><br clear="none"></div><div dir="ltr">Link do Script</div><div dir="ltr"> <a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/23c3acff">Download CB.R</a> </div><div style="width:450px;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';margin-top:5px;margin-bottom:5px;background-color:#ffffff;"><table cellspacing="0" cellpadding="0" border="0" style="width:450px;height:170px;display:block;"><tbody><tr><td colspan="8" rowspan="1" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;"> </div></td></tr><tr><td colspan="1" rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td><td colspan="1" rowspan="5" style="vertical-align:middle;width:168px;height:168px;background-color:#000000;border-collapse:collapse;"><div align="center" style="width:168px;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/23c3acff" style="text-decoration:none!important;color:#000000!important;"><img alt="image" src="http://img.datafilehost.com/download.png" width="168" height="52" style="display:block;margin:auto;" data-id="f6ebd5f4-044c-e78f-dc5d-8820c09598ca"></a></div></td><td colspan="1" rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:0pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td><td colspan="1" rowspan="5" style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="width:14px;background-color:#ffffff;font-size:14pt;"> </div></td><td colspan="2" rowspan="1" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:6px;background-color:#ffffff;font-size:6pt;"> </div></td><td colspan="1" rowspan="5" style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="width:20px;background-color:#ffffff;font-size:20pt;"> </div></td><td colspan="1" rowspan="5" width="1" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse;"><div style="width:1px;background-color:#e5e5e5;font-size:1pt;"> </div></td></tr><tr><td colspan="2" rowspan="1" style="width:100%;vertical-align:middle;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';"><div style="line-height:16.5px;background-color:#ffffff;min-height:135px;width:245px;"><div style="word-wrap:break-word;"><span></span><span></span><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/23c3acff" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block;"><span style="margin:0;font-weight:normal;margin-bottom:3px;font-size:18px;line-height:21px;max-height:43px;color:#000000;overflow:hidden!important;display:inline-block;">Download CB.R</span></a><div style="font-size:13px;line-height:20px;color:#999999;max-height:81px;font-family:'Georgia', 'Times', 'Times New Roman', 'serif';overflow:hidden;">Download CB.R free. File hosted free by DataFileHost.</div></div></div></td></tr><tr><td colspan="2" rowspan="1" style="height:4px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:4px;background-color:#ffffff;font-size:4pt;"></div></td></tr><tr><td colspan="1" rowspan="1" style="vertical-align:middle;font-family:'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div style="font-size:0pt;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.datafilehost.com/d/23c3acff" style="color:black;text-decoration:none!important;"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow:hidden;max-height:13px;"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Visualizar em <span style="font-weight:bold;">www.datafilehost...</span></span></span></a></div></td><td colspan="1" rowspan="1" style="vertical-align:middle;width:100px;font-family:'Arial', 'Helvetica Neue', 'Helvetica', 'sans-serif';"><div style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt;"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999;">Visualizado por Yahoo</span></div></td></tr><tr><td colspan="2" rowspan="1" style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse;"><div style="min-height:9px;background-color:#ffffff;font-size:9pt;"></div></td></tr><tr><td colspan="8" rowspan="1" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse;"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px;"> </div></td></tr></tbody></table></div><div><br clear="none"></div><div></div><div><br clear="none"></div><div dir="ltr">Feliz 2015 para os amigos!!! </div><span class="yiv6462533193HOEnZb"><font color="#888888"></font></span><div><div>Edson Lira<br clear="none">Estatístico<br clear="none">Manaus-Amazonas</div></div></div></div></div><br clear="none">_______________________________________________<br clear="none">
R-br mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br clear="none">
Leia o guia de postagem (<a rel="nofollow" shape="rect" target="_blank" href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br clear="none"></blockquote></div><br clear="none"><br clear="all"><div><br clear="none"></div>-- <br clear="none"><div class="yiv6462533193gmail_signature"><div dir="ltr">Marcus Nunes<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://marcusnunes.me/">http://marcusnunes.me/</a><br clear="none"></div></div>
</div></div></div><br><br></div> </div> </div> </div> </div></body></html>