Skip to content
Prev 304561 / 398503 Next

use row and col names of a matrix to create colnames of a new one.

On Aug 30, 2012, at 7:24 AM, Juan Antonio Balbuena wrote:

            
matrix2 <- matrix1
  colnames(matrix2) <-  
paste(rownames(matrix1),colnames(matrix1),sep="-")
  matrix2