<html><head></head><body bgcolor="#FFFFFF"><div>Benilton,</div><div><br></div><div>Muito obrigado mais uma vez pela ajuda. Problema resolvido!</div><div><br></div><div>Humberto</div><div><br><br>Enviado via iPhone</div><div><br>Em May 31, 2012, às 4:57 PM, "Benilton Carvalho" <<a href="mailto:beniltoncarvalho@gmail.com">beniltoncarvalho@gmail.com</a>> escreveu:<br><br></div><div></div><blockquote type="cite"><div>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>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>R-br mailing list</span><br><span><a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a></span><br><span><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a></span><br><span>Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.</span></div></blockquote></body></html>