Id = as.integer(factor(boat))<span></span><br><br>On Thursday, 31 May 2012, Humberto Hazin  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Caros,<br>
    <br>
    Venho mais uma vez solicitar ajuda a vocês<br>
    <br>
    tenho um banco de dados com cerca de 80 mil linhas conforme o
    exemplo abaixo. gostaria de atribuir um id para cada barco, exemplo
    toda a coluna que tivesse o Barco Vieirasa a coluna ID = 1 e assim
    por diante. Alguem pode me ajudar?<br>
    Humberto<br>
    <br>
    <table style="border-collapse:collapse;width:96pt" border="0" cellpadding="0" cellspacing="0" width="128">
      <colgroup><col style="width:48pt" span="2" width="64"> </colgroup><tbody>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt;width:48pt" height="20" width="64">boat</td>
          <td style="width:48pt" width="64">Id</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">VIEIRASA</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">COSTA.DE.SAO.MIGUEL</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">VIEIRASA</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">GUARISTE.PRIMEIRO</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">GAVILAN.DEL.MAR</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">VIEIRASA</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">GUARISTE</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">GUARISTE</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">RAYMI</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">MAR.DE.LOS.SARGAZOS</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">RAYMI</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td colspan="2" style="min-height:15.0pt" height="20">GUARISTE</td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">RAYMI</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
        <tr style="min-height:15.0pt" height="20">
          <td style="min-height:15.0pt" height="20">COSMOS</td>
          <td><br>
          </td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <br>
  </div>

</blockquote>