Displaying 1 result from an estimated 1 matches for "timestepid".
Did you mean:
timestep
2013 Apr 30
1
Trouble with reading xml in R
...k for this file.
I have tried different other solutions, but I just can't seem to get it
quite right.
doc <- xmlRoot(xmlTreeParse(url))
art <- doc[[1]] [["DeliveryDay"]]
fields <- xmlApply(art[[2]]), names)
unique(names(unlist(fields)))
Gives output:
> "TimeStepID.text" "Purchase.Price" "Purchase.Volume" "Sell.Price"
> "Sell.Volume"
So I want the result to be a 2 data.frames which looks like this (of course
for the sell data.fram it would say sell)
TimeStepID Purchase.Price Purchase.Volume
1...