<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_1_1427652950504_8112"></div><div style="" class="" id="yiv7769765337yui_3_16_0_1_1427634612122_2859" dir="ltr">Caros listeiros, bom dia!!</div><div style="" class="" id="yiv7769765337yui_3_16_0_1_1427634612122_2888" dir="ltr">Recorro a vcs para resolver um problema talves simples mas que vem me incomodando a alguns meses.</div><div style="" class="" id="yiv7769765337yui_3_16_0_1_1427634612122_2900" dir="ltr">Tenho o seguinte vetor retirado de outro data frame:<span id="yiv7769765337yui_3_16_0_1_1427634612122_2953" class="" style="color:blue;"></span></div><div style="" class="" id="yiv7769765337yui_3_16_0_1_1427634612122_3284" dir="ltr"><span id="yiv7769765337yui_3_16_0_1_1427634612122_2953" class="" style="color:blue;"><br style="" class=""></span></div><div style="" class="" id="yiv7769765337yui_3_16_0_1_1427634612122_3193" dir="ltr"><span id="yiv7769765337yui_3_16_0_1_1427634612122_2953" class="" style="color:blue;">trt<-c(</span>0,30,60,120,180,0,30,60,180,120,0,30,60,120,180)
<br style="" class=""></div><div style="" class="" id="yiv7769765337yui_3_16_0_1_1427634612122_2938" dir="ltr"><span id="yiv7769765337yui_3_16_0_1_1427634612122_2937" class="" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Lucida Console';font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:15px;orphans:2;text-indent:0px;text-transform:none;white-space:pre-wrap;widows:2;word-spacing:0px;background-color:rgb(225, 226, 229);"></span></div><pre id="yiv7769765337yui_3_16_0_1_1427634612122_2936" class="" style="font-family:'Lucida Console';font-size:10pt !important;outline-style:none;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;white-space:pre-wrap;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2;"><br style="" class="">Mas cujo rank é:<br style="" class=""><span id="yiv7769765337yui_3_16_0_1_1427634612122_3021" class="" style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Lucida Console';font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:15px;orphans:2;text-indent:0px;text-transform:none;white-space:pre-wrap;widows:2;word-spacing:0px;background-color:rgb(225, 226, 229);"><pre id="yiv7769765337yui_3_16_0_1_1427634612122_3020" class="" style="font-family:'Lucida Console';font-size:10pt !important;outline-style:none;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;white-space:pre-wrap;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2;"><span id="yiv7769765337yui_3_16_0_1_1427634612122_3019" class="" style="color:blue;">rank(trt)
</span> [1] 2 11 14 5 8 2 11 14 8 5 2 11 14 5 8</pre></span><br style="" class=""></pre><pre id="yiv7769765337yui_3_16_0_1_1427634612122_2936" class="" style="font-family:'Lucida Console';font-size:10pt !important;outline-style:none;outline-color:initial;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;white-space:pre-wrap;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:1.2;">Como eu poderia modificar o rank do vetor? <br style="" class="">Talves colocar o rank com o valor do proprio elemento do vetor.<br><br>Antecipadamente agradeço.<br></pre><div id="yui_3_16_0_1_1427652950504_8048"> </div><div id="yui_3_16_0_1_1427652950504_8053" class="signature"><div id="yui_3_16_0_1_1427652950504_8052" style="text-align:center;">Odirley R. Campos<br>Engenheiro Agrônomo UFV/MG</div><div id="yui_3_16_0_1_1427652950504_8211" style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;text-align:center;"><br></div></div></div></body></html>