Re: [R] Help needed on R output

2009-05-26 Thread Jim Lemon
peng chen wrote: Hi, R experts: I am trying to generate data output in the following format: rom_array := ( , 01001001011011101100, 1001001011010101, 1101110100000011, 000100100101001001011001,

Re: [R] Help needed on R output

2009-05-26 Thread Adrian Dusa
. -- View this message in context: http://www.nabble.com/Help-needed-on-R-output-tp23716736p23720449.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Help needed on R output

2009-05-26 Thread peng chen
Thanks. I am sorry that I did not clearly put my question. I need to output the array like t - c( + , + 01001001011011101100, + 1001001011010101, + 1101110100000011, + 000100100101001001011001, +

Re: [R] Help needed on R output

2009-05-26 Thread jim holtman
If you want to create that output in a file, then create one long string and use 'cat' to output; here is an example with the output to the console: t - c( + , + 01001001011011101100, + 1001001011010101, +

Re: [R] Help needed on R output

2009-05-26 Thread Linlin Yan
Did you mean this: write.table(t, eol=,\n, row.names=FALSE, col.names=FALSE) , 01001001011011101100, 1001001011010101, 1101110100000011, 000100100101001001011001, 000101101101101001101001, Try

[R] Help needed on R output

2009-05-25 Thread peng chen
Hi, R experts: I am trying to generate data output in the following format: rom_array := ( , 01001001011011101100, 1001001011010101, 1101110100000011, 000100100101001001011001, 000101101101101001101001)

Re: [R] Help needed on R output

2009-05-25 Thread Linlin Yan
t - c( + , + 01001001011011101100, + 1001001011010101, + 1101110100000011, + 000100100101001001011001, + 000101101101101001101001) { + cat ('rom_array := (\n'); + for (i in 1:length(t)) { + cat('',