Created
February 20, 2012 22:54
-
-
Save pedroj/1872089 to your computer and use it in GitHub Desktop.
Example of setting row and column names
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of setting row and column names | |
mdat <- matrix(c(1,2,3, 11,12,13), nrow = 2, ncol=3, byrow=TRUE, | |
dimnames = list(c("row1", "row2"), | |
c("C.1", "C.2", "C.3"))) | |
mdat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment