Displaying 2 results from an estimated 2 matches for "tadm".
Did you mean:
adm
2011 Jun 29
2
parse XML file
...t;v date="2011-04-06">13.5</v>
</stationname>
</data>
I would like to get a table in R like this:
stationname date value
Aachen 2011-04-01 14.1
Aachen 2011-04-01 17.6
.
.
.
Ahaus 2011-04-06 13.5
I tried to do this:
doc = xmlRoot(xmlTreeParse("de.dwd.klis.TADM.xml"))
tmp = xmlSApply(doc, function(x) xmlSApply(x, xmlValue))
but the stationname was not parsed because "Aachen" is kind of
attribute of stationname.
Could anyone give some help?
Thanks,
kai.
2011 Jun 30
0
help with interpreting what nnet() output gives:
...C3315F4 at gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Thank you Barry, that works fine.
Sorry for stupid questions... however, I couldn't manage to get a
dataframe out of this.
That's what I was doing:
doc = xmlRoot(xmlTreeParse("de.dwd.klis.TADM.xml"))
dumpData <- function(doc){
for(i in 1:length(doc)){
stns = doc[[i]]
for (j in 1:length(stns)){
cat(stns$attributes['value'],stns[[j]][[1]]$value,stns[[j]]
$attributes['date'],"\n")
}
}
}
dumpData(doc)
Thanks for your helping
kai
>
> Am 2...