Importing data from an XML file into R

Christian picture Christian · Dec 25, 2009 · Viewed 9.8k times · Source

I want to import an XML file from polarpersonaltrainer.com that stores heartrate data into a R data.frame. Is there a package that makes importing XML easy or do I have to write my own parser?

Answer

Shane picture Shane · Dec 25, 2009

Yes. Use the XML package. There's a function called xmlToDataFrame which will make your life easy.