Christian
Christian

Reputation: 26387

Importing data from an XML file into R

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?

Upvotes: 7

Views: 9973

Answers (2)

lfaraone
lfaraone

Reputation: 50672

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

Upvotes: 0

Shane
Shane

Reputation: 100164

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

Upvotes: 17

Related Questions