<div dir="ltr">Prezados blogueiros<div><br></div><div>Bom diaz</div><div>Estou com uma dúvida básica no R e preciso da ajuda de vocês. Eu tenho uma matriz de distância genética entre centenas de indivíduos (parte dela abaixo) e quero identificar a combinação linha x coluna com máximo valor e a combinação linha x coluna com mínimo valor eliminando a diagonal, pois essa tem valor zero. Vamos imaginar que o mínimo é 5.075. Logo, quero saber esse valor e posição dele, por por exemplo. Os nomes da coluna e diagonal são de acesso de germoplasma.</div><div> 4</div><div>5 5.075</div><div><br></div><div><table border="0" cellpadding="0" cellspacing="0" width="384" style="border-collapse:collapse;width:288pt">
<colgroup><col width="64" span="6" style="width:48pt">
</colgroup><tbody><tr height="20" style="height:15pt">
<td height="20" width="64" style="height:15pt;width:48pt"></td>
<td class="gmail-xl63" align="right" width="64" style="width:48pt">1</td>
<td class="gmail-xl63" align="right" width="64" style="width:48pt">2</td>
<td class="gmail-xl63" align="right" width="64" style="width:48pt">3</td>
<td class="gmail-xl63" align="right" width="64" style="width:48pt">4</td>
<td class="gmail-xl63" align="right" width="64" style="width:48pt">5</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">1</td>
<td align="right">0</td>
<td align="right">86.441</td>
<td align="right">63.108</td>
<td align="right">120.692</td>
<td align="right">21.903</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">2</td>
<td align="right">86.441</td>
<td align="right">0</td>
<td align="right">7.663</td>
<td align="right">39.936</td>
<td align="right">39.71</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">3</td>
<td align="right">63.108</td>
<td align="right">7.663</td>
<td align="right">0</td>
<td align="right">30.014</td>
<td align="right">32.262</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">4</td>
<td align="right">120.692</td>
<td align="right">39.936</td>
<td align="right">30.014</td>
<td align="right">0</td>
<td align="right">97.077</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">5</td>
<td align="right">86.463</td>
<td align="right">5.358</td>
<td align="right">5.075</td>
<td align="right">40.632</td>
<td align="right">41.155</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">6</td>
<td align="right">58.086</td>
<td align="right">22.672</td>
<td align="right">5.571</td>
<td align="right">20.989</td>
<td align="right">43.635</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">7</td>
<td align="right">160.623</td>
<td align="right">84.723</td>
<td align="right">99.275</td>
<td align="right">59.463</td>
<td align="right">121.871</td>
</tr>
<tr height="20" style="height:15pt">
<td height="20" class="gmail-xl63" align="right" style="height:15pt">8</td>
<td align="right">149.096</td>
<td align="right">78.921</td>
<td align="right">107.048</td>
<td align="right">104.64</td>
<td align="right">94.213</td>
</tr></tbody></table><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="2" face="arial, helvetica, sans-serif"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif">Grato.</font></div><div><font size="2" face="arial, helvetica, sans-serif"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif">Rodrigo.</font></div><div><font size="2" face="arial, helvetica, sans-serif"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif">-- </font></div><div><div><font size="2" face="arial, helvetica, sans-serif">Prof. Rodrigo Oliveira de Lima</font></div><div><font size="2" face="arial, helvetica, sans-serif">Federal University of Viçosa</font></div><div><font size="2" face="arial, helvetica, sans-serif">Department of Plant Sciences</font></div><div><font size="2" face="arial, helvetica, sans-serif">Viçosa, MG, Brazil, 36570-900,</font></div><div><font size="2" face="arial, helvetica, sans-serif">Phone: +55(31)3899-2781/3247</font></div><div><font size="2" face="arial, helvetica, sans-serif">Fax: +55(31)3899-2614 </font></div><div><font size="2" face="arial, helvetica, sans-serif">Email: <a href="mailto:rodrigoodelima@ufv.br" target="_blank">rodrigoodelima@ufv.br</a></font></div><div><font size="2" face="arial, helvetica, sans-serif">CV: <a href="http://lattes.cnpq.br/2761299616351806" target="_blank">http://lattes.cnpq.br/2761299616351806</a> <br></font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>