[R] generate XML

S Devriese sdmaillist at gmail.com
Fri Jan 8 09:20:25 CET 2010


On 01/07/2010 11:36 AM, robert-mcfadden at o2.pl wrote:
> 
> 
> 
> Dnia 7 stycznia 2010 11:30 S Devriese <sdmaillist at 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 thank you for help.  
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.


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)



More information about the R-help mailing list