Description Usage Arguments Details Value Author(s) See Also Examples
This function returns the rank of an input matrix
1 | matrixrank(x, tolerance = 1e-08)
|
x |
The input matrix. Make sure this is a matrix object |
tolerance |
The tolerance of the numerical zeros. All singular values whose absolute value is smaller than the tolerance will be treated as zero. |
This function identifies the singular values, and count the number of such values significant away from 0. The result is the rank of the input matrix.
The rank of the input matrix.
Lingsong Zhang (lingsong@purdue.edu)
See Also in svd
.
1 2 3 4 5 6 | #generate a random matrix
x<-matrix(rnorm(100), nrow=20);
#calculate the rank of this matrix
y<-matrixrank(x);
y
|
Loading required package: lattice
[1] 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.