Description Usage Arguments Value Examples
This function resphapes all or parts of a square matrix into a 3 column table.
1 2 |
x |
A square matrix to reshape into a dataframe. |
col.names |
A vector indicating how output columns are named. |
keep |
A logical vector of length 3 indicating which of the three respective elements to keep: upper triangle, main diagonal, and lower triangle. |
drop.values |
A vector of values to remove from the output. |
drop.NA |
Logical value indicating if NAs should be removed. |
a data.frame with three columns. Columns 1 & 2 contain the row & column names, and third contains corresponding matrix values.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.