<div dir="ltr">Prezados<div><br></div><div>Como faço para pegar os dados de uma tabela que está dentro de uma Frame em HTML usando o R?</div><div><br></div><div>O site é esse: <a href="http://portal.inep.gov.br/basica-censo-escolar-matricula">http://portal.inep.gov.br/basica-censo-escolar-matricula</a> nele eu preciso dizer o estado que eu quero os dados e a pesquisa me retorna uma tabela com os dados. Não existe nenhuma opção para exportar essa tabela.</div>
<div><br></div><div>Sei que existe o Rcurl e o XML, mas não tenho ideia de como fazer isso.</div><div><br></div><div>Segue um pedaço da frame:</div><div><br></div><div><table><tbody><tr><td class="">       <span class=""><td  ></span>Federal<span class=""></td></span>
</td></tr><tr><td class="" value="95"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>322<span class=""></td></span>
</td></tr><tr><td class="" value="96"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>334<span class=""></td></span>
</td></tr><tr><td class="" value="97"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>3541<span class=""></td></span>
</td></tr><tr><td class="" value="98"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>6855<span class=""></td></span>
</td></tr><tr><td class="" value="99"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>16910<span class=""></td></span>
</td></tr><tr><td class="" value="100"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>10427<span class=""></td></span>
</td></tr><tr><td class="" value="101"></td><td class="">
</td></tr><tr><td class="" value="102"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>48<span class=""></td></span>
</td></tr><tr><td class="" value="103"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>1301<span class=""></td></span>
</td></tr><tr><td class="" value="104"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>0<span class=""></td></span>
</td></tr><tr><td class="" value="105"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>0<span class=""></td></span>
</td></tr><tr><td class="" value="106"></td><td class="">
</td></tr><tr><td class="" value="107"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>9<span class=""></td></span>
</td></tr><tr><td class="" value="108"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>70<span class=""></td></span>
</td></tr><tr><td class="" value="109"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>361<span class=""></td></span>
</td></tr><tr><td class="" value="110"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>311<span class=""></td></span>
</td></tr><tr><td class="" value="111"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>209<span class=""></td></span>
</td></tr><tr><td class="" value="112"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>83<span class=""></td></span>
</td></tr><tr><td class="" value="113"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>0<span class=""></td></span>
</td></tr><tr><td class="" value="114"></td><td class="">    <span class=""><td <span class="">align</span>="<span class="">right</span>"  ></span>2<span class=""></td><br><br><br></span></td></tr></tbody></table>
<div><div><br></div>-- <br><div dir="ltr">Sérgio Henrique Almeida da Silva Junior<br>Doutorando em Epidemiologia em Saúde Pública<br>Escola Nacional de Saúde Pública Sérgio Arouca - ENSP/FIOCRUZ<br><a href="http://lattes.cnpq.br/1611345552843383" target="_blank">http://lattes.cnpq.br/1611345552843383</a> <br>
Tel: (21) 968463637<br><div><a href="http://www.linkedin.com/profile/view?id=250437145&trk=tab_pro" target="_blank">http://www.linkedin.com/profile/view?id=250437145&trk=tab_pro</a><br></div></div>
</div></div></div>