mat2dt | R Documentation |
upper or lower triangle or all values of a matrix as long-format
mat2dt(x, triangle = "lower", as.fun)
x |
A matrix |
triangle |
Either '"lower"' (default) or '"upper"', or '"all"' for which triangle to return. '"lower"' and '"upper"' are equivalent for covariance or correlation matrices but the returned indexes will differ. '"all"' will return the full matrix which mostly makes sense if matrix is not a covariance or correlation matrix. |
as.fun |
See '?NMdataConf' |
The matrix is assumed ordered and the index numbers for rows and columns will be returned in 'i' and 'j' columns. Row names and column names will be returned in columns 'parameter.i' and 'parameter.j'.
A 'data.frame'-like object with indexes 'i' and 'j' for position and matrix element value in 'value' column.
dt2mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.