Skip to content

Instantly share code, notes, and snippets.

@pedroj
Created February 20, 2012 22:54
Show Gist options
  • Save pedroj/1872089 to your computer and use it in GitHub Desktop.
Save pedroj/1872089 to your computer and use it in GitHub Desktop.
Example of setting row and column names
# 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