Did you mean this: > write.table(t, eol=",\n", row.names=FALSE, col.names=FALSE) "00000000000000000000000000000000", "00000000010010010110111111101100", "00000000100100101101000001011111", "00000000110111000001000111100011", "00000001001001010010010100001001", "00000001011011011111101001101001",
Try ?write.table to get the detail of the function please. On Tue, May 26, 2009 at 9:33 PM, peng chen <rogerchan2...@gmail.com> wrote: > Thanks. > > I am sorry that I did not clearly put my question. > > I need to output the array like > t <- c( > + "00000000000000000000000000000000", > + "00000000010010010110111111101100", > + "00000000100100101101000001011111", > + "00000000110111000001000111100011", > + "00000001001001010010010100001001", > + "00000001011011011111101001101001") > > to a datafile(e.g., .txt file) where each line is for a binary number in > this format: > "00000000000000000000000000000000", > "00000000010010010110111111101100", > .... > > I was trying to use R-function write.table, however, I wasn't able to get > the trailing comma for each line(although I can get the double quotation > marks). > > Thanks. ______________________________________________ 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.