[R] Simple question on replace a matrix row

anna lippelanna24 at hotmail.com
Fri Jan 29 21:55:17 CET 2010


Hello, I have a matrix mat1 of dim [1,8] and mat2 of dim[30,8], I want to
replace the first row of mat2 with mat1, this is what I do:
mat2[1,]<-mat1 but it transforms mat2 in a list I don't understand, I want
it to stay a matrix...

-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/Simple-question-on-replace-a-matrix-row-tp1427857p1427857.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list