Re: [R] generate XML

2010-01-11 Thread robert-mcfadden
Dnia 8 stycznia 2010 9:20 S Devriese sdmaill...@gmail.com napisał(a): Mhh, you could have a look at write.matrix in the MASS package, but I'm afraid that you might have to specify the encoding explicitly (see ?connections, the section on encoding) Thank you. The matrix that I write are coding

Re: [R] generate XML

2010-01-08 Thread S Devriese
On 01/07/2010 11:36 AM, robert-mcfad...@o2.pl wrote: Dnia 7 stycznia 2010 11:30 S Devriese sdmaill...@gmail.com napisał(a): you might try # open file connection sink(item1.xml) # print object my.matrix # close file connection sink() Unfortunately, It does not code letter

[R] generate XML

2010-01-07 Thread Robert
Finally, I managed to automatically generate rather simple XML code. In R this is a matrix. The problem concerns how to write that matrix to file. I use write.table and the extension of file .xml Everything works perfect beside coding some language letters (Polish). But the problem disappears

Re: [R] generate XML

2010-01-07 Thread S Devriese
On 01/07/2010 10:13 AM, Robert wrote: Finally, I managed to automatically generate rather simple XML code. In R this is a matrix. The problem concerns how to write that matrix to file. I use write.table and the extension of file .xml Everything works perfect beside coding some language

Re: [R] generate XML

2010-01-07 Thread robert-mcfadden
Dnia 7 stycznia 2010 10:41 S Devriese sdmaill...@gmail.com napisał(a): Have you checked the XML package? If you print the matrix within R, this it look like you want (including correct langauge encoding? Because in that case, you probably could use sink (see ?sink). Stephan Yes. In R I

Re: [R] generate XML

2010-01-07 Thread S Devriese
On 01/07/2010 10:57 AM, robert-mcfad...@o2.pl wrote: Dnia 7 stycznia 2010 10:41 S Devriese sdmaill...@gmail.com napisał(a): Have you checked the XML package? If you print the matrix within R, this it look like you want (including correct langauge encoding? Because in that case, you probably

Re: [R] generate XML

2010-01-07 Thread robert-mcfadden
Dnia 7 stycznia 2010 11:30 S Devriese sdmaill...@gmail.com napisał(a): you might try # open file connection sink(item1.xml) # print object my.matrix # close file connection sink() Unfortunately, It does not code letter appropriate. To #print object it's better to use write.table. But