Dennis, as soon as I do : > mat3[1, ] <- mat1 and class(mat3) I get a list and not a matrix anymore...So yes you drove me to the problem, mat1 is not one-row numeric matrix but a list.
----- Anna Lippel -- View this message in context: http://n4.nabble.com/Simple-question-on-replace-a-matrix-row-tp1427857p1440044.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.