<div dir="ltr"><div class="gmail_default" style=""><div class="gmail_default" style=""><font face="tahoma, sans-serif">Boa tarde pessoal.</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Tentei ordenar um mesmo vetor no R usando Linux ou Windows e os resultados foram diferentes. </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">#linux</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">> sort(c('AB CD','ABCD'))</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] "ABCD" "AB CD"</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">#windows</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">> sort(c('AB CD','ABCD'))</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] "AB CD" "ABCD"</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Pelo que eu consegui entender, o problema está relacionado ao "LOCALE" usado por cada uma dos sistemas... estou certo?</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Alguém saberia dizer qual o motivo disso, e como posso fazer com que os dois sistemas gerem os mesmos resultados?</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">De preferência quero tornar o resultado do Linux igual ao do Windows. Ou seja, quero alterar as configurações do R no Linux</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Abraços,</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Luciano</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">ps:</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Informações das seções:</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">##UBUNTU</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">> sessionInfo()</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">R version 3.2.2 (2015-08-14)</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Platform: i686-pc-linux-gnu (32-bit)</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Running under: Ubuntu precise (12.04.5 LTS)</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">locale:</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"> [1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C LC_TIME=pt_BR.UTF-8 LC_COLLATE=pt_BR.UTF-8 </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"> [5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF-8 LC_PAPER=pt_BR.UTF-8 LC_NAME=C </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"> [9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">attached base packages:</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] stats graphics grDevices utils datasets methods base </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">loaded via a namespace (and not attached):</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] tools_3.2.2</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">> sort(c('AB CD','ABCD'))</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] "ABCD" "AB CD"</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">###WINDOWS</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">> sessionInfo()</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">R version 3.2.1 (2015-06-18)</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Platform: x86_64-w64-mingw32/x64 (64-bit)</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">Running under: Windows 7 x64 (build 7601) Service Pack 1</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">locale:</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252 LC_MONETARY=Portuguese_Brazil.1252</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[4] LC_NUMERIC=C LC_TIME=Portuguese_Brazil.1252 </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">attached base packages:</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] stats graphics grDevices utils datasets methods base </font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">loaded via a namespace (and not attached):</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] tools_3.2.1</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">> sort(c('AB CD','ABCD'))</font></div><div class="gmail_default" style=""><font face="tahoma, sans-serif">[1] "AB CD" "ABCD"</font></div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"></blockquote><div><font color="#444444" size="2" face="arial, helvetica, sans-serif">Luciano F. Sgarbi</font></div><div><font color="#444444" size="2" face="arial, helvetica, sans-serif"><a href="http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4299200T7" target="_blank"> Currículo Lattes</a></font></div><div><font size="2" face="arial, helvetica, sans-serif"><font color="#444444">Laboratório de Ecologia Teórica e Síntese<br style="background-color:rgb(255,255,255)"></font><span style="color:rgb(68,68,68)">Departamento de Ecologia, Instituto de Ciências Biológicas V.</span><font color="#444444"><br></font></font><div style="background-color:rgb(255,255,255)"><font color="#444444" size="2" face="arial, helvetica, sans-serif"><font>Universidade Federal de Goiás, campus II, Goiânia-GO, </font>Brasil</font></div></div></div></div></div></div>
</div>