makeTria | R Documentation |
Function is mainly used for eatAnalysis::wtdHetcor
function from the
eatAnalysis
package (https://github.com/beckerbenj/eatAnalysis/)
and the eatModel::q3FromRes
function in the eatModel
package: Triangular covariance/correlation matrices are tidily reshaped.
makeTria (dfr)
dfr |
A data frame consisting of a row name column and a square matrix. |
data frame.
dfr <- data.frame ( vars = paste0("var", 2:4), matrix(c(1:3, NA, NA, 5, 4,NA,6),
nrow=3, ncol=3, dimnames=list(NULL, paste0("var", 1:3))))
makeTria(dfr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.