Hi, I do not understand the code right now but it does its job. Thanks a lot! Best, syrvn -- View this message in context: http://r.789695.n4.nabble.com/how-to-get-row-name-of-matrix-when-result-is-a-vector-tp2525631p2525657.html Sent from the R help mailing list archive at Nabble.com.