<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:14pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><span>Novamente venho recorrer a ajuda dos senhores!! Toda vez que trabalho com datas a vontade que eu tenho é de matar o R.</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><span><br></span></div><div><span><font class="Apple-style-span" size="4">Os meus dados estão </font><span class="Apple-style-span" style="font-size: 19px;">dispostos</span><font class="Apple-style-span" size="4"> da seguinte maneira:</font></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><span><br></span></div><div><span><div><span class="Apple-style-span" style="font-size: 19px; ">dao[1:15,]</span></div><div><span class="Apple-style-span" style="font-size: 19px;"> trati dat
vari</span></div><div><span class="Apple-style-span" style="font-size: 19px;">1 1 03-08 0.0000000</span></div><div><span class="Apple-style-span" style="font-size: 19px;">2 1 04-08 0.3472222</span></div><div><span class="Apple-style-span" style="font-size: 19px;">3 1 05-08 0.0000000</span></div><div><span class="Apple-style-span" style="font-size: 19px;">4 1 06-08 1.7361111</span></div><div><span class="Apple-style-span" style="font-size: 19px;">5 1 07-08 2.7777778</span></div><div><span class="Apple-style-span" style="font-size: 19px;">6 1 08-08 2.0833333</span></div><div><span class="Apple-style-span" style="font-size: 19px;">7 1 09-08 2.4305556</span></div><div><span class="Apple-style-span" style="font-size: 19px;">8 1 10-08
0.0000000</span></div><div><span class="Apple-style-span" style="font-size: 19px;">9 1 11-08 0.0000000</span></div><div><span class="Apple-style-span" style="font-size: 19px;">10 1 12-08 0.0000000</span></div><div><span class="Apple-style-span" style="font-size: 19px;">11 1 01-09 0.0000000</span></div><div><span class="Apple-style-span" style="font-size: 19px;">12 1 02-09 26.7361111</span></div><div><span class="Apple-style-span" style="font-size: 19px;">13 1 03-09 70.4861111</span></div><div><span class="Apple-style-span" style="font-size: 19px;">14 1 04-09 99.3055556</span></div><div><span class="Apple-style-span" style="font-size: 19px;">15 1 05-09 99.3055556</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><br></div></span></div><div style="font-family: arial, helvetica, sans-serif;
font-size: 14pt; ">No entanto, a boneca do R ordena as datas da seguinte maneira:</div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><br></div><div><span class="Apple-style-span" style="font-size: 19px;">levels(dao$dat)</span></div><div><span class="Apple-style-span" style="font-size: 19px;"> [1] "01-09" "01-10" "02-09" "02-10" "03-08" "03-09" "03-10" "04-08" "04-09"</span></div><div><span class="Apple-style-span" style="font-size: 19px;">[10] "04-10" "05-08" "05-09" "05-10" "06-08" "06-09" "06-10" "07-08" "07-09"</span></div><div><span class="Apple-style-span" style="font-size: 19px;">[19] "07-10" "08-08" "08-09" "08-10" "09-08" "09-09" "09-10" "10-08" "10-09"</span></div><div><span class="Apple-style-span" style="font-size: 19px;">[28] "10-10" "11-08" "11-09" "11-10" "12-08" "12-09" "12-10"</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "> </div><div style="font-family: arial,
helvetica, sans-serif; font-size: 14pt; ">Ou seja, ele ordena da maneira que ele acha mais conveniente e não da maneira que eu coloquei. Como faço para deixas os levels da maneira como eu VEJO os dados, ou seja, ordenado por ANO?</div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; ">Mais uma vez obrigado a todos e desculpem a ignorância.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; ">Allaman</div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; ">(S,f,P)</div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 14pt; background-color: transparent; color: rgb(115, 115, 115); " align="center"><b>M.Sc Ivan Bezerra
Allaman</b> <br>Zootecnista<br><font style="background-color:transparent;" face="comic sans ms" size="2"><font style="background-color:transparent;">Doutorando em Produção Animal/Aquicultura - UFLA</font> <br></font><font size="2"><i><strong></strong></i></font><font style="background-color:transparent;" face="comic sans ms" size="2">email e msn - ivanalaman@yahoo.com.br <br><font size="1">Tel: (35)3826-6608/9900-2924</font></font></div></div></body></html>