Re: [R] paste command with new line separator

2008-11-17 Thread Sunayan Acharya
Thanks a lot. That works. I had no clue that the '\n' was still active and I could use cat to see the result. On Mon, Nov 17, 2008 at 3:58 PM, Oliver Bandel <[EMAIL PROTECTED]>wrote: > slurpy gmail.com> writes: > > > > > > > Win xp sp2, R v2.7.1 > > Hi. If I have two numeric columns in a data

Re: [R] paste command with new line separator

2008-11-17 Thread Oliver Bandel
slurpy gmail.com> writes: > > > Win xp sp2, R v2.7.1 > Hi. If I have two numeric columns in a data frame, I can use the paste > command to combine them into a new column separated by a comma. > c3=paste(c1,c2,sep=',') > gives: 1 1 -> "1,1" > Is there any way I can use a new line (\n) as a sepa

Re: [R] paste command with new line separator

2008-11-17 Thread Jorge Ivan Velez
Dear slurpy, Perhaps: cat('', 1,'\n', 1,'\n') See ?cat for more information. HTH, Jorge On Mon, Nov 17, 2008 at 3:03 PM, slurpy <[EMAIL PROTECTED]> wrote: > > Win xp sp2, R v2.7.1 > Hi. If I have two numeric columns in a data frame, I can use the paste > command to combine them into a new c