search for: closetag

Displaying 5 results from an estimated 5 matches for "closetag".

2007 Jun 12
4
pretty report
Dear Listers: I have a couple of data frames to report and each corresponds to different condtions, e.g. conditions=c(10, 15, 20, 25). In this examples, four data frames need to be exported in a "pretty" report. I knew Perl has some module for exporting data to Excel and after googling, I found R does not. So I am wondering if there is a package in R for generating good reports. I
2003 Jul 30
1
Write XML according to ggobi DTD
Hi, Has anyone out there written a function to take a data.frame as input and generate XML that conforms to the DTD for ggobi ("ggobi.dtd")? In other words, like a simple version of the writeSDML function in the StatDataML package, but using ggobi.dtd instead of StatDataML.dtd. It looks easy to write such a function to handle data.frames with only numeric data, but a bit of work with
2009 Jul 14
1
(simple) xml into data.frame and reverse
..."age","0","1") ### converts data.frame into XML xml <- xmlTree() xml$addTag("populationsize", close=FALSE) for (i in 1:nrow(data)) { xml$addTag("size", close=FALSE) for (j in names(data)) { xml$addTag(j, data[i, j]) } xml$closeTag() } xml$closeTag() # view the result cat(saveXML(xml)) I put below also an example of how my data looks like. Thanks for any advice! Best and have a great day, Stefan APPENDIX XML-file ------------------ <populationsize> ?<size> ? ?<age>0</age> ? ?<sex>0</se...
2008 Jul 02
1
Removing or overwriting an XML node
...st> </name> </Duncan> created by e.g. ? library(XML) tr <- xmlTree("Duncan") tr$addTag("name", attrs=c(a=1,b="xyz"), close=F) tr$addTag("first", "Duncan") tr$addTag("last", "Temple Lang") tr$closeTag() cat(saveXML(tr)) And now imagine I want to change <first>Duncan</first> into e.g.? <initials>D.</initials>. How to do that ? I am able to add my node: library(XML) x <- xmlTreeParse("duncan.xml", useInternalNodes = TRUE) # find parent, add as l...
2008 Oct 15
0
R-help Digest, Vol 67, Issue 31
...;,72.85,72.85,72.85,72.85,0,70.69'), as.is=TRUE) library(XML) xml <- xmlTree() xml$addTag("document", close=FALSE) for (i in 1:nrow(data)) { xml$addTag("row", close=FALSE) for (j in names(data)) { xml$addTag(j, data[i, j]) } xml$closeTag() } xml$closeTag() # view the result cat(saveXML(xml)) Paul zubin wrote: > Duncan, thanks for the note - the schema looks like this - is this what > your asking for? > > <document> > <row> > <date>2007-02-01</date > > <UYG_Open>71.32&lt...