Description Usage Arguments Value Author(s) Examples
This function reduce a square matrix keeping only those variables specified by the users. It also allow to keep the whole matrix or the lower triangle only.
1 | reduceMatrix(x, varNames=NULL, lowerTri=F)
|
x |
Matrix. Matrix to be reduced. |
varNames |
String vector. It should contain variables name in x to be keeped in the output matrix. |
lowerTri |
Logical value, indicating if the output matrix should include all the values or only the lower triangle. Default value is returning the whole matrix. |
Matrix. Which will be a submatrix of x, where only the variables specified (varNames) are keeped.
Diego Nieto Lugilde
1 2 3 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.