Re: [R] example - export a data frame to an XML file

2008-09-30 Thread zubin
Yes! This is perfect, Paul - thank you very much. -zubin Paul Murrell wrote: > Hi > > Is this what you are after ... ? > > > data <- > read.csv(textConnection('"date","UYG.Open","UYG.High","UYG.Low","UYG.Close","UYG.Volume","UYG.Adjusted" > "2007-02-01",71.32,71.34,71.32,71.34,200,69.23 > "2007-

Re: [R] example - export a data frame to an XML file

2008-09-29 Thread Paul Murrell
Hi Is this what you are after ... ? data <- read.csv(textConnection('"date","UYG.Open","UYG.High","UYG.Low","UYG.Close","UYG.Volume","UYG.Adjusted" "2007-02-01",71.32,71.34,71.32,71.34,200,69.23 "2007-02-02",72.2,72.2,72.2,72.2,200,70.06 "2007-02-05",71.76,71.76,71.76,71.76,5100,69.63 "2007-02-0

Re: [R] example - export a data frame to an XML file

2008-09-29 Thread zubin
Duncan, thanks for the note - the schema looks like this - is this what your asking for? 2007-02-01 71.32 71.34 71.32 71.34 200 69.23 2007-02-02 72.2 72.2 72.2 72.2 200 70.06 Duncan Temple Lang wrote: Hi Zubin. The first thing is to send us a link to the schema that the

Re: [R] example - export a data frame to an XML file

2008-09-28 Thread Duncan Temple Lang
Hi Zubin. The first thing is to send us a link to the schema that the other application expects. That would give us a "one-to-one" mapping; otherwise, data.frame to arbitrary XML is to vague. Currently, there is nothing in the XML package that would be able to take an XML schema and write a

[R] example - export a data frame to an XML file

2008-09-28 Thread zubin
In need of exporting an XML file from R, I scrub some data in R and push the data into another application requiring XML. The data set is a very straightforward data frame of stock prices- see below. I know the package XML is the one to use, but need an example or some direction on where to s