<div><span style="color:#0000ff;">Eu não consegui rodar, veja o que acontece:</span><br />
> library("httr")<br />
> library("jsonlite")<br />
> library("data.table")<br />
data.table 1.14.2 using 4 threads (see ?getDTthreads).  Latest news: r-datatable.com<br />
> <br />
> url<-str_c("https://servicodados.ibge.gov.br/api/v1/localidades/estados/RJ/regioes-metropolitanas")<br />
Error in str_c("https://servicodados.ibge.gov.br/api/v1/localidades/estados/RJ/regioes-metropolitanas") : <br />
  não foi possível encontrar a função "str_c"<br />
 </div>

<div class="ydpe9efe48cyahoo-style-wrap" style="font-family: bookman old style, new york, times, serif; font-size: 16px;">
<div data-setdir="false" dir="ltr" style="">
<div style="">
<div data-setdir="false" dir="ltr" style="font-size: 16px; color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif;">Prezados, bom dia!!! Novamente o chato rs. De forma direta, eu tenho essa consulta que eu fiz com essas packages:</div>

<div style="font-size: 16px; color: rgb(0, 0, 0); font-family: bookman old style, new york, times, serif;"> </div>

<div style="font-family: bookman old style, new york, times, serif;"><font color="#808080" size="2" style="">library("httr")</font></div>

<div style="font-family: bookman old style, new york, times, serif;"><font color="#808080" size="2">library("jsonlite")</font></div>

<div style="font-family: bookman old style, new york, times, serif;"><font color="#808080" size="2">library("data.table")</font></div>

<div style=""> </div>
</div>
</div>

<div data-setdir="false" dir="ltr" style="">
<div data-setdir="false" dir="ltr" style="">
<div style="">
<div data-setdir="false" dir="ltr" style="">
<div style="">
<div style=""><font color="#808080" size="2">url<-str_c("<a xhref="https://servicodados.ibge.gov.br/api/v1/localidades/estados/RJ/regioes-metropolitanas">https://servicodados.ibge.gov.br/api/v1/localidades/estados/RJ/regioes-metropolitanas</a>")</font></div>

<div style=""><font color="#808080" size="2">r<-GET(url)</font></div>

<div style=""> </div>

<div style=""><span style="color: rgb(128, 128, 128); font-size: small;">r_text<-content(r, </span><span style="color: rgb(128, 128, 128); font-size: small;">as="text"</span><span style="color: rgb(128, 128, 128); font-size: small;">)</span></div>

<div style=""><font color="#808080" size="2">data_json<-fromJSON(r_text, flatten=TRUE)</font></div>

<div style=""><font color="#808080" size="2" style="">data_json<-as.data.frame(data_json)</font></div>
</div>
</div>
</div>
Em resumo, dessa API do IBGE, busquei as informações das regiões metropolitanas, e as importei para dentro do R em dataframe, para realizar uma análise.</div>

<div data-setdir="false" dir="ltr" style=""> </div>

<div data-setdir="false" dir="ltr" style="">Problema: quando ele vêm, ele está com a seguinte cara:</div>

<div data-setdir="false" dir="ltr" style=""> </div>

<div data-setdir="false" dir="ltr" style=""><img alt="Imagem incorporada" class="yahoo-inline-image" data-id="<0aa4cd89-68aa-8a58-dd79-122e1200b94e@yahoo.com>" draggable="false" invalid="top.fixImageError(this,'https://mail.uol.com.br/content_id?msg_id=MzgzNjU&cid=0aa4cd89-68aa-8a58-dd79-122e1200b94e%2540yahoo.com&folder=JUNK')" src="/content_id?msg_id=MzgzNjU&cid=0aa4cd89-68aa-8a58-dd79-122e1200b94e%40yahoo.com&folder=JUNK" style="max-width: 800px; width: 100%;" title="Imagem incorporada" /><br />
Sendo que em municipios, está a informação dos municipios. Eu até consigo (via comando r<span>bindlist) "quebrar" esse info de municipios assim: </span></div>

<div data-setdir="false" dir="ltr" style=""><span style="color: rgb(128, 128, 128); font-size: small;">data_json_municipios<-rbindlist(data_json$municipios)</span></div>

<div data-setdir="false" dir="ltr" style="">
<div>
<div> </div>

<div data-setdir="false" dir="ltr">Mas eu queria, no mesmo banco de origem (chamado aqui de data_json), expandir para o banco essa informações dos municípios.</div>
</div>
</div>

<div data-setdir="false" dir="ltr" style=""> </div>

<div data-setdir="false" dir="ltr" style=""><span>Alguém poderia me ajudar nessa? Obrigado!!!  </span>  </div>
</div>

<div class="ydpe9efe48csignature" style="font-size: 16px;">
<div style="font-family:Helvetica, Arial, sans-serif;font-size:16px;">
<div style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white;"> </div>

<div style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white;"><i id="ydpcf278505yui_3_16_0_1_1497025264182_38508"><span id="ydpcf278505yui_3_16_0_1_1497025264182_38507" style="color:rgb(0, 0, 191);font-size:medium;"><font face="Courier New, courier, monaco, monospace, sans-serif" style="background-color: inherit;">Diogo Jerônimo</font></span></i></div>

<div style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white;"><i id="ydpcf278505yui_3_16_0_1_1497025264182_38430"><span id="ydpcf278505yui_3_16_0_1_1497025264182_38429" style="color:rgb(0, 0, 191);font-size:medium;"><font face="Courier New, courier, monaco, monospace, sans-serif" style="background-color: inherit;">Bacharel em Ciências Estatísticas - ENCE/IBGE</font></span></i></div>

<div style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white;"><i id="ydpcf278505yui_3_16_0_1_1497025264182_38309"><span id="ydpcf278505yui_3_16_0_1_1497025264182_38308" style="color:rgb(0, 0, 191);font-size:medium;"><font face="Courier New, courier, monaco, monospace, sans-serif" style="background-color: inherit;">Mestre em Metrologia - PUC-Rio/PósMQI</font></span></i></div>

<div style="margin-bottom:0.0001pt;padding:0px;line-height:normal;background:white;"><i id="ydpcf278505yui_3_16_0_1_1497025264182_38323"><span id="ydpcf278505yui_3_16_0_1_1497025264182_38322" style="line-height:17.12px;color:rgb(0, 0, 191);font-size:medium;"><font face="Courier New, courier, monaco, monospace, sans-serif" id="ydpcf278505yui_3_16_0_1_1497025264182_38695" style="background-color: inherit;"><a xhref="http://lattes.cnpq.br/8996149312896520">http://lattes.cnpq.br/8996149312896520</a></font></span></i></div>
</div>
</div>
</div>
_______________________________________________<br />
R-br mailing list<br />
R-br@listas.c3sl.ufpr.br<br />
<a xhref="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br />
Leia o guia de postagem (<a xhref="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.