Hello guys, I wanted to thank you, each one of you led me step by step to the core of the problem. The matrix I was working on was made of rows obtained each one by the lapply function. So by using lapply I was getting a matrix which rows were not numeric vectors but lists. To solve this I used a data.frame() and a data.matrix on each list that lapply would return me and then built my matrix. Now it's working perfectly so thank you again!
----- Anna Lippel -- View this message in context: http://n4.nabble.com/Simple-question-on-replace-a-matrix-row-tp1427857p1458926.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.