7

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?

Brian Campbell
  • 322,767
  • 57
  • 360
  • 340
Christian
  • 25,249
  • 40
  • 134
  • 225

2 Answers2

17

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

Shane
  • 98,550
  • 35
  • 224
  • 217
0

You might find RSXML useful. It's also in CRAN.

lfaraone
  • 49,562
  • 17
  • 52
  • 70