<div dir="ltr">Edson,<div><br></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></div><div>Abs,</div><div><br></div><div><font face="monospace, monospace">######</font></div><div><br></div><div><div><div><font face="monospace, monospace">rm(list = ls())</font></div><div><font face="monospace, monospace"><br></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></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></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="gmail_extra"><br><div class="gmail_quote">2015-01-02 21:53 GMT-02:00 Edson Lira <span dir="ltr"><<a href="mailto:edinhoestat@yahoo.com.br" target="_blank">edinhoestat@yahoo.com.br</a>></span>:<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: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></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></div><div dir="ltr"><a href="http://www.datafilehost.com/d/6853a3bf" target="_blank">Download TESTE DATA.csv</a><br></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" 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 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 rowspan="5" style="vertical-align:middle;width:168px;height:168px;background-color:#000000;border-collapse:collapse"><div style="width:168px" align="center"><a href="http://www.datafilehost.com/d/6853a3bf" style="text-decoration:none!important;color:#000000!important" target="_blank"><img alt="image" src="http://img.datafilehost.com/download.png" width="168" height="52" style="display:block;margin:auto"></a></div></td><td 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 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" 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 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 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" 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;word-break:break-all"><span></span><span></span><a href="http://www.datafilehost.com/d/6853a3bf" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block" target="_blank"><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" 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 style="vertical-align:middle;font-family:'Arial','Helvetica Neue','Helvetica','sans-serif'"><div style="font-size:0pt"><a href="http://www.datafilehost.com/d/6853a3bf" style="color:black;text-decoration:none!important" target="_blank"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow:hidden;max-height:13px;word-break:break-all"><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 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" 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" 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></div><div dir="ltr">Link do Script</div><div dir="ltr"> <a href="http://www.datafilehost.com/d/23c3acff" target="_blank">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" 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 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 rowspan="5" style="vertical-align:middle;width:168px;height:168px;background-color:#000000;border-collapse:collapse"><div style="width:168px" align="center"><a href="http://www.datafilehost.com/d/23c3acff" style="text-decoration:none!important;color:#000000!important" target="_blank"><img alt="image" src="http://img.datafilehost.com/download.png" width="168" height="52" style="display:block;margin:auto"></a></div></td><td 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 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" 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 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 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" 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;word-break:break-all"><span></span><span></span><a href="http://www.datafilehost.com/d/23c3acff" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block" target="_blank"><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" 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 style="vertical-align:middle;font-family:'Arial','Helvetica Neue','Helvetica','sans-serif'"><div style="font-size:0pt"><a href="http://www.datafilehost.com/d/23c3acff" style="color:black;text-decoration:none!important" target="_blank"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow:hidden;max-height:13px;word-break:break-all"><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 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" 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" 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></div><div></div><div><br></div><div dir="ltr">Feliz 2015 para os amigos!!! </div><span class="HOEnZb"><font color="#888888"><div><div>Edson Lira<br>Estatístico<br>Manaus-Amazonas</div></div></font></span></div></div><br>_______________________________________________<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" 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.<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Marcus Nunes<br><a href="http://marcusnunes.me/" target="_blank">http://marcusnunes.me/</a><br></div></div>
</div>