<div>Aline,</div><div><br></div>faça:<div><br></div><div>> dados[which(dados$comprador == 1), ] <-  NULL<br><br>att,</div><div>FH<br><br><div class="gmail_quote">2013/2/1 Aline Lipsky <span dir="ltr"><<a href="mailto:line_lips@hotmail.com" target="_blank">line_lips@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
<br><br>Boa tarde,<div><br></div><div>Tenho um data.frame similar a esse com mais de 6000 obs.:</div><div><br></div><div><table border="0" cellpadding="0" cellspacing="0" width="298" style="border-collapse:collapse;width:225pt">

 <colgroup><col width="134" style="width:101pt">
 <col width="90" style="width:68pt">
 <col width="74" style="width:56pt">
 </colgroup><tbody><tr height="20" style="min-height:15.0pt">
  <td height="20" width="134" style="min-height:15.0pt;width:101pt">     data</td>
  <td width="90" style="width:68pt">    local</td>
  <td width="74" style="width:56pt">comprador</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt">29/02/2012      </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">29/02/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">29/02/2012 </td>
  <td>     RS        </td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">29/02/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">29/02/2012 </td>
  <td>     RS</td>
  <td>    1</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">29/02/2012          </td>
  <td>     RS</td>
  <td>    1</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">29/02/2012 </td>
  <td>     RS</td>
  <td>    1</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/02/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/02/2012 </td>
  <td>     RS</td>
  <td>    1</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/02/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/02/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/02/2012 </td>
  <td>     RS</td>
  <td>    1</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/02/2012 </td>
  <td>     RS</td>
  <td>    1</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/01/2012 </td><td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">28/01/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">27/01/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">26/01/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr>
 <tr height="20" style="min-height:15.0pt">
  <td height="20" style="min-height:15.0pt;border-top:none">26/01/2012 </td>
  <td>     RS</td>
  <td>    0</td>
 </tr></tbody></table><br></div><div>Preciso eliminar as linhas onde a variável comprador é 1. Me interessam apenas os dados do comprador 0.</div><div><br></div><div>Agradeço desde já  a atenção,</div><div><br></div><div>
Att.,</div><div><br></div><div>Aline</div>                                    </div></div>
<br>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br></div>