[R] Writing - specyfic format

From: jastar <mswierniak_at_o2.pl>
Date: Thu, 28 Jun 2007 05:00:35 -0700 (PDT)

Hi all,
I have a trouble - I need to write file in a very specyfic format. I have two vectors which different lengths and one data.frame (or matrix). I want to write it to "*.txt" file in following way: 1st row of file is my 1st vector (separate by spacebar) 2nd row of file is 2nd vector (also separate by spacebar) Rest of this file should be a matrix with elements separated by tab. For example: a=1, 2, 3, b=4, 5, c=[1, 2, 3, 4, 5, 6;

                                            7, 8, 9, 10, 11, 12,]
and I want to have file (it have to be .txt file) like: 1 2 3
4 5
1     2     3     4     5     6
7     8     9     10   11    12

This thing have to be done automaticly from R. Is it possible?
Thank you in advance

-- 
View this message in context: http://www.nabble.com/Writing---specyfic-format-tf3994017.html#a11341784
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_stat.math.ethz.ch 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.
Received on Thu 28 Jun 2007 - 12:06:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Jun 2007 - 17:32:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.