[R] generate XML
S Devriese
sdmaillist at gmail.com
Thu Jan 7 11:30:39 CET 2010
On 01/07/2010 10:57 AM, robert-mcfadden at o2.pl wrote:
> Dnia 7 stycznia 2010 10:41 S Devriese <sdmaillist at 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 get correct view. How to use sink? I have the object: my.matrix
> and I want to create a file item1.xml How to do it?
>
>
> ______________________________________________
> 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.
you might try
# open file connection
sink("item1.xml")
# print object
my.matrix
# close file connection
sink()
More information about the R-help
mailing list