<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>Você pode usar o comando order para ordenar um data.frame:</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;"><span>yourdf[order(yourdf$C2),]<br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><span><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; font-style: normal;"><span>Note que você pode ordenar por mais de uma coluna.
 Por exemplo, ordenar por C1 e dentro de C1 ordenar por C2. Para mais detalhes, consulte a ajuda da função: ?order</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">Saudações,<br>--<br>Thiago V. dos Santos<br>PhD student<br>Land and Atmospheric Science<br>University of Minnesota<br>http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm<br>Phone: (612) 323 9898<br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Gilenio Borges Fernandes
 <gilenio@ufba.br><br> <b><span style="font-weight: bold;">To:</span></b> r-br@listas.c3sl.ufpr.br <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 12, 2013 9:52 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [R-br] Como ordenar os elementos das linhas de uma matriz de dados?<br> </font> </div> <div class="y_msg_container"><br><div id="yiv7821219632"><div dir="ltr"><div>Prezados(as)</div><div><br></div><div>Como ordenar os elementos das linhas de uma matriz de dados?</div><div>Exemplo, 10 linhas e 7 colunas:</div><div>     C1   C2   C3   C4   C5   C6   C7</div><div>L1   28   33   36   69   35   45   62</div>
<div>L2   21   28   33   36   16   22   59</div><div>L3   23   37   40   61   22   26   30</div><div>L4   20   61   74   78   15   22   62</div><div>L5   13   51   61   63    7   41   45</div><div>L6   13   20   21   42    4   41   62</div>
<div>L7   13   21   28   43    6    8   12</div><div>L8   32   42   43   44   45   48   50</div><div>L9    5   20   69   74    1   50   52</div><div>L10  20   36   51   78   12   49   79</div><div><br></div><div>Grato</div>
<div>Gilenio</div><div><br></div>-- <br>Gilenio Borges Fernandes<div>Professor Associado III<br>Universidade Federal da Bahia<br>Instituto de Matemática<br>Departamento de Estatística<br>Av. Adhemar de Barros, s/n – Ondina.<br>
40.170-110 - Salvador - BA, Brasil<br>Tel.: (071)3283-6280/6336  Fax:  (071)3283-6276<br>URL: <a rel="nofollow" target="_blank" href="http://lattes.cnpq.br/6764860618464860">http://lattes.cnpq.br/6764860618464860</a><br></div>
</div></div><br>_______________________________________________<br>R-br mailing list<br><a ymailto="mailto:R-br@listas.c3sl.ufpr.br" 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><br></div> </div> </div>  </div></body></html>