Description Usage Arguments Details Examples
returns the rank of a square matrix
1 | rank_matrix(x, method = "qr")
|
x |
numeric matrix |
method |
type of decomposition: |
The rank is calculated based on the selected method
1 2 3 4 5 6 7 8 9 10 11 | set.seed(5)
M1 = matrix(runif(21), 3, 7)
# rank
rank_matrix(M1)
# another matrix
M2 = matrix(1:20, 4, 5)
# rank
rank_matrix(M2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.