<div>Não ficou claro o que vc está querendo colega, poderia ser mais claro?<br /><br /><em>Att.</em><br /><em>André</em></div>
<div> </div>
<hr style="border-top: 1px solid #ccc;" />
<div>Em 18/05/2013 09:28, <strong>Hélio Gallo Rocha < heliogallorocha@gmail.com ></strong> escreveu:</div>
<div dir="ltr">Bom dia a todos,
<div> </div>
<div>Para recomendar adubação fosfatada é necessário classificar a quantidade de fósforo da análise em conjunto a textura do solo.</div>
<div> </div>
<div>
<table style="border-collapse: collapse; width: 311pt;" width="412" border="0" cellspacing="0" cellpadding="0"><colgroup><col style="width: 48pt;" width="64" /> <col style="width: 96pt;" width="128" /> <col style="width: 38pt;" span="3" width="50" /> <col style="width: 53pt;" width="70" /> </colgroup>
<tbody>
<tr style="height: 12.75pt;">
<td style="height: 12.75pt; width: 48pt;" width="64" height="17"> Tabela da quinta aproximação
<table style="width: 311pt; margin-left: 3pt; border-collapse: collapse;" width="415" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 12.75pt;">
<td style="width: 48pt; border: 1pt solid windowtext; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="64">
<p><span style="font-size: 10pt; font-family: Arial;"> </span></p>
</td>
<td style="width: 263pt; border-style: solid solid solid none; border-top-color: windowtext; border-right-color: windowtext; border-bottom-color: windowtext; border-top-width: 1pt; border-right-width: 1pt; border-bottom-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" colspan="5" valign="bottom" nowrap="nowrap" width="351">
<p style="text-align: center;" align="center"><span style="font-size: 10pt; font-family: Arial;">Nível de Fósforo mg/dm3</span></p>
</td>
</tr>
<tr style="height: 12.75pt;">
<td style="width: 48pt; border-style: none solid solid; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="64">
<p><span style="font-size: 10pt; font-family: Arial;">Argila%</span></p>
</td>
<td style="width: 97.7pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="130">
<p><span style="font-size: 10pt; font-family: Arial;">muito baixo</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">Baixo</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">Médio</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">Bom</span></p>
</td>
<td style="width: 52.5pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="70">
<p><span style="font-size: 10pt; font-family: Arial;">Muito Bom</span></p>
</td>
</tr>
<tr style="height: 12.75pt;">
<td style="width: 48pt; border-style: none solid solid; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="64">
<p><span style="font-size: 10pt; font-family: Arial;">60-100</span></p>
</td>
<td style="width: 97.7pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="130">
<p><span style="font-size: 10pt; font-family: Arial;"><2.7 (menor e igual)</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">2.8-5.4</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">5.5-8</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">8.1-12</span></p>
</td>
<td style="width: 52.5pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="70">
<p><span style="font-size: 10pt; font-family: Arial;">>12</span></p>
</td>
</tr>
<tr style="height: 12.75pt;">
<td style="width: 48pt; border-style: none solid solid; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="64">
<p><span style="font-size: 10pt; font-family: Arial;">35-60</span></p>
</td>
<td style="width: 97.7pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="130">
<p><span style="font-size: 10pt; font-family: Arial;"><4</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">4.1-8</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">8.1-12</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">12.1-18</span></p>
</td>
<td style="width: 52.5pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="70">
<p><span style="font-size: 10pt; font-family: Arial;">>18</span></p>
</td>
</tr>
<tr style="height: 12.75pt;">
<td style="width: 48pt; border-style: none solid solid; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="64">
<p><span style="font-size: 10pt; font-family: Arial;">15-35</span></p>
</td>
<td style="width: 97.7pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="130">
<p><span style="font-size: 10pt; font-family: Arial;"><6.6</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">6.7-12</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">12.1-20</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">20.1-30</span></p>
</td>
<td style="width: 52.5pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="70">
<p><span style="font-size: 10pt; font-family: Arial;">>30</span></p>
</td>
</tr>
<tr style="height: 12.75pt;">
<td style="width: 48pt; border-style: none solid solid; border-right-color: windowtext; border-bottom-color: windowtext; border-left-color: windowtext; border-right-width: 1pt; border-bottom-width: 1pt; border-left-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="64">
<p><span style="font-size: 10pt; font-family: Arial;">0-15</span></p>
</td>
<td style="width: 97.7pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="130">
<p><span style="font-size: 10pt; font-family: Arial;"><10</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">10.1-20</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">20.1-30</span></p>
</td>
<td style="width: 37.6pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="50">
<p><span style="font-size: 10pt; font-family: Arial;">30.1-45</span></p>
</td>
<td style="width: 52.5pt; border-style: none solid solid none; border-bottom-color: windowtext; border-bottom-width: 1pt; border-right-color: windowtext; border-right-width: 1pt; padding: 0cm 3.5pt; height: 12.75pt;" valign="bottom" nowrap="nowrap" width="70">
<p><span style="font-size: 10pt; font-family: Arial;">>45</span></p>
</td>
</tr>
</tbody>
</table>
</td>
<td style="border-left-style: none; width: 263pt;" colspan="5" width="348"> </td>
</tr>
</tbody>
</table>
</div>
<div>
<div> </div>
<div> </div>
<div>Fiz o seguinte:</div>
<div>
<div>solo=c(1:50) # resultado da análise do solo</div>
<div>argila=c(60,35,15,0) # teor de argila</div>
<div>p1=c(0,2.7,5.4,8,12) # fósforo com + de 60% de argila</div>
<div>p2=c(0,4,8,12,18) # fósforo com 35 a 60% de argila</div>
<div>p3=c(0,6.6,12,20,30) # fósforo com 15 a 35% de argila</div>
<div>p4=c(0,10,20,30,45) # fósforo com < 15% de argila</div>
<div>res=c("Muito.Baixo","Baixo", "Medio", "Alto", "Muito.alto")</div>
<div> </div>
<div>Assim se o resultado de P é 3.5 :</div>
<div>60% de arg, seria classificado como Baixo</div>
<div>35% de arg. seria classificado como muito baixo</div>
<div> </div>
<div>andei dando uma olhada na solução do post </div>
<h1 id="post-title" style="font-family: GillSans,Trebuchet,Calibri,Arial,sans-serif; color: #333333; font-size: 1.8em; margin: 0.25em 0px 0.8em;">Uso do ifelse</h1>
<div> </div>
</div>
<div>A saida desta função seria casada com uma recomendação,</div>
<div> </div>
<div>Grato a todos</div>
<div> </div>
-- <br />Hélio Gallo Rocha<br />IFSULDEMINAS - Câmpus Muzambinho</div>
</div>
<div> </div>