<div dir="ltr">Bom dia a todos,<div><br></div><div style>Para recomendar adubação fosfatada é necessário classificar a quantidade de fósforo da análise em conjunto a textura do solo.</div><div style><br></div><div style><table border="0" cellpadding="0" cellspacing="0" width="412" style="border-collapse:collapse;width:311pt">

 <colgroup><col width="64" style="width:48pt">
 <col width="128" style="width:96pt">
 <col width="50" span="3" style="width:38pt">
 <col width="70" style="width:53pt">
 </colgroup><tbody><tr height="17" style="height:12.75pt">
  <td height="17" class="" width="64" style="height:12.75pt;width:48pt"> Tabela da quinta aproximação <table class="" border="0" cellspacing="0" cellpadding="0" width="415" style="width:311pt;margin-left:3pt;border-collapse:collapse">

 <tbody><tr style="height:12.75pt">
  <td width="64" nowrap valign="bottom" style="width:48pt;border:1pt solid windowtext;padding:0cm 3.5pt;height:12.75pt">
  <p class=""><span style="font-size:10pt;font-family:Arial"> </span></p>
  </td>
  <td width="351" nowrap colspan="5" valign="bottom" 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">

  <p class="" align="center" style="text-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 width="64" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">Argila%</span></p>
  </td>
  <td width="130" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">muito
  baixo</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">Baixo</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">Médio</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">Bom</span></p>
  </td>
  <td width="70" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">Muito Bom</span></p>
  </td>
 </tr>
 <tr style="height:12.75pt">
  <td width="64" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">60-100</span></p>
  </td>
  <td width="130" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial"><2.7
  (menor e igual)</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">2.8-5.4</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">5.5-8</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">8.1-12</span></p>
  </td>
  <td width="70" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">>12</span></p>
  </td>
 </tr>
 <tr style="height:12.75pt">
  <td width="64" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">35-60</span></p>
  </td>
  <td width="130" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial"><4</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">4.1-8</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">8.1-12</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">12.1-18</span></p>
  </td>
  <td width="70" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">>18</span></p>
  </td>
 </tr>
 <tr style="height:12.75pt">
  <td width="64" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">15-35</span></p>
  </td>
  <td width="130" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial"><6.6</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">6.7-12</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">12.1-20</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">20.1-30</span></p>
  </td>
  <td width="70" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">>30</span></p>
  </td>
 </tr>
 <tr style="height:12.75pt">
  <td width="64" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">0-15</span></p>
  </td>
  <td width="130" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial"><10</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">10.1-20</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">20.1-30</span></p>
  </td>
  <td width="50" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">30.1-45</span></p>
  </td>
  <td width="70" nowrap valign="bottom" 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">

  <p class=""><span style="font-size:10pt;font-family:Arial">>45</span></p>
  </td>
 </tr>
</tbody></table></td><td colspan="5" class="" width="348" style="border-left-style:none;width:263pt"><br></td></tr></tbody></table></div><div><div><br></div><div><br></div><div style>Fiz o seguinte:</div><div style><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><br></div><div style>Assim se o resultado de P é 3.5 :</div><div style>60% de arg, seria classificado como Baixo</div><div style>35% de arg. seria classificado como muito baixo</div><div style><br></div><div style>andei dando uma olhada na solução do post </div>
<h1 id="post-title" class="" style="font-family:GillSans,Trebuchet,Calibri,Arial,sans-serif;color:rgb(51,51,51);font-size:1.8em;margin:0.25em 0px 0.8em">Uso do ifelse</h1><div style><br></div></div><div style>A saida desta função seria casada com uma recomendação,</div>
<div style><br></div><div style>Grato a todos</div><div style><br></div>-- <br>Hélio Gallo Rocha<br>IFSULDEMINAS - Câmpus Muzambinho<br>
</div></div>