mat2vec | R Documentation |
creates a vector from a matrix
mat2vec(mat,upper=FALSE)
mat |
a symmetric matrix |
upper |
whether the upper triangular matrix is to be copied to the vector |
a vector
{
mat2vec(matrix(1:16,nrow=4))
mat2vec(matrix(1:16,nrow=4),upper=TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.