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 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@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() ______________________________________________ R-help@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.