Re: [R] Build a matrix from another matrix by specifying the indexes

2010-02-03 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 02.02.2010 21:32:16: > > ke te pehea koe Peter? > I don't see how I could do this with a merge to be honest... > mat<-matrix(sample(letters[1:3], 24, replace=T),6,4) > mat [,1] [,2] [,3] [,4] [1,] "b" "c" "b" "c" [2,] "b" "a" "a" "c" [3,]

Re: [R] Build a matrix from another matrix by specifying the indexes

2010-02-02 Thread anna
ke te pehea koe Peter? I don't see how I could do this with a merge to be honest... - Anna Lippel -- View this message in context: http://n4.nabble.com/Build-a-matrix-from-another-matrix-by-specifying-the-indexes-tp1460326p1460355.html Sent from the R help mailing list archive at Nabble.com

Re: [R] Build a matrix from another matrix by specifying the indexes

2010-02-02 Thread Peter Alspach
Tena koe Anna This sounds like merge to me. ?merge HTH Peter Alspach > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of anna > Sent: Wednesday, 3 February 2010 9:07 a.m. > To: r-help@r-project.org > Subject: [R] Build a