Re: [R] unique columns in a matrix and number of each

2008-11-23 Thread Sunayan Acharya
maybe there's a much simpler way to do this but here's what I got: > z [,1] [,2] [,3] [,4] [,5] [,6] [1,]114444 [2,]225555 [3,]336666 > z.unique<-unique(z,MARGIN=2) > z.unique [,1] [,2] [1,]14 [2,]25

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