Re: [R] adding column of ordered numbers to matrix

2010-06-10 Thread Greg Snow
:r-help-boun...@r- > project.org] On Behalf Of Assa Yeroslaviz > Sent: Thursday, June 10, 2010 7:56 AM > To: r-h...@stat.math.ethz.ch > Subject: [R] adding column of ordered numbers to matrix > > Hello everyone, > > I have a matrix of over 4 line and about 30 columns. >

[R] adding column of ordered numbers to matrix

2010-06-10 Thread Assa Yeroslaviz
Hello everyone, I have a matrix of over 4 line and about 30 columns. For my analysis I would like to add another column with ascending numbers (column header should be "order", and than 1,2,3,4 the end of the matrix). During my analysis I reorder them ( due to merge commands by a differen