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

matrix1 <- matrix(rnorm(16),4)
rownames(matrix1) <- LETTERS[1:4] # fixed the coding error
colnames(matrix1) <- letters[1:4]

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

--
David Winsemius, MD
Alameda, CA, USA

______________________________________________
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.

Reply via email to