Description Usage Arguments Examples
Given vectors for a square matrix (upper triangle, lower triangle, and diagonal) build the square correlation matrix
1 | createSquareMatrix(lowerarray, upperarray, diagarray = NA)
|
lowerarray |
A vector of numeric values (excluding diagonals) that define the lower triangle of the square matrix |
upperarray |
A vector of numeric values (excluding diagonals) that define the lower triangle of the square matrxi |
diagarray |
What you want in the diagonal or a vector that will fill the diagonal |
1 2 3 4 | createSquareMatrix(LETTERS[1],LETTERS[6:8],1)
createSquareMatrix(1:3,1,6:8)
createSquareMatrix(1:3,4:6,7:9)
createSquareMatrix(1:6,7:12,13:16)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.