search for: klis

Displaying 3 results from an estimated 3 matches for "klis".

Did you mean: klist
2011 Jun 29
2
parse XML file
...<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:
...CF285C3315F4 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 > >...
2007 Mar 28
0
Timeout ?
Hello folks, I''m looking for a way to stop my workers after a certain amount of time (a timeout). I''m not finding any good tutorial on this subject (just this thread http://rubyforge.org/pipermail/backgroundrb-devel/2006-December/thread.html#600 ). How do you guys implement a timeout mechanisme in your backgroundrb worker ? Thanks in advance, ++ yk