Description Usage Arguments Details
Compared to matrix(), this function has simpler syntax for creating a matrix with names, especially only column names.
1 2 3 4 5 6 7 8 |
data |
data vector, contents of the matrix |
row.names |
character vector, row names |
col.names |
character vector, column names |
nrow |
integer, number of rows |
ncol |
integer, number of columns |
byrow |
logical, determines fill direction |
The name mtrx is short for (m)a(tr)i(x).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.