mat2dt {NMdata} | R Documentation |
upper or lower triangle or all values of a matrix as long-format
Description
upper or lower triangle or all values of a matrix as long-format
Usage
mat2dt(x, triangle = "lower", as.fun)
Arguments
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' |
Details
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'.
Value
A 'data.frame'-like object with indexes 'i' and 'j' for position and matrix element value in 'value' column.
See Also
dt2mat
[Package NMdata version 0.1.6 Index]