Description Usage Arguments Details Value Examples
This function quickly converts a set of matrices into a data frame.
1 2 3 4 5 |
x |
a list of matrix-like object. |
row.names |
NULL (default) or a string vector for setting row names of matrix. |
col.names |
NULL (default) or a string vector for setting col names of matrix. |
row.order |
NULL (default), a numeric vector, "hclust" or "dendrogram" object for reordering the rows of matrix. |
col.order |
NULL (default), a numeric vector, "hclust" or "dendrogram" object for reordering the columns of matrix. |
cluster.type |
"none" (default), "all", "row" or "col" for reordering matrix. |
cluster.method |
a character string with the name of agglomeration method. Defaults to "complete" for numeric matrix, "osa" for ohter type matrix. |
tree.type |
"none" (default), "all", "row" or "col" for adding cluster tree. |
row.tree.position |
position of tree for rows, NULL (defualt), "right" or "left". |
col.tree.position |
NULL (defualt), "top" or "bottom", position of tree for columns. |
row.tree.max.height |
max height of tree for rows, NULL or postive value. |
col.tree.max.height |
max height of tree for columns, NULL or postive value. |
If there are more than one matrix, cluster only according to the first matrix.
a data frame.
1 2 3 4 | matrixs_to_df(x = mtcars)
m1 <- matrix(rnorm(100), nrow = 20)
m2 <- matrix(rnorm(100), nrow = 20)
matrixs_to_df(list(m1 = m1, m2 = m2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.