powered by
creates a vector from a matrix
mat2vec(mat,upper=FALSE)
a symmetric matrix
whether the upper triangular matrix is to be copied to the vector
a vector
# NOT RUN { { mat2vec(matrix(1:16,nrow=4)) mat2vec(matrix(1:16,nrow=4),upper=TRUE) } # }
Run the code above in your browser using DataLab