I have been trying to copy the row names of one matrix to another matrix but having difficulty. The original matrix contains a row name which I would like to replicate in the new matrix. I use the following approach? The two matrices have identical dimensions.
rN <- row.names(origMatrix) row.names(newMatrix) <- rN However the new matrix does not take on the labels. I have also tried, row.names(newMatrix) <- as.character(rN) Any ideas? -- View this message in context: http://www.nabble.com/Copying-row-names-tf4445280.html#a12683702 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.