Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 206553

How to parse a list of multiple list and convert it to data frame in R?

$
0
0

I am sending a request to a URL that returns a XML.

I parse the XML but then I want to convert the information to data frame.

The main problem is the information is a list of multiple list and I don't know how to convert it to data frame.

This is my code:

url<-"http://ovc.catastro.meh.es/ovcservweb/OVCSWLocalizacionRC/OVCCallejero.asmx/Consulta_DNPLOC"

parameters_request<-list(Provincia="Madrid",
                         Municipio="Madrid",
                         Sigla="PS",
                         Calle="Delicias",
                         Numero="81",
                         Bloque="",
                         Escalera="",
                         Planta="",
                         Puerta="")


result_request<-POST(url, body= parameters_request,encode="form")


content_request <- content(result_request)

content_request<-xmlToList(xmlParse(content_request))

Anyone know how to parse it?

Thanks in advance.


Viewing all articles
Browse latest Browse all 206553

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>