getSVD | R Documentation |
Compute the SVD of a matrix using irlba
getSVD(matrix, k = 1, sing.vec = c("left", "right"))
matrix |
A p x n input matrix |
k |
Number of singular vectors to return |
sing.vec |
Whether to return the right or left singular vector |
A singular vector or matrix with sign corresponding to positive values
dummy <- matrix(rnorm(10000), ncol=25)
sing_vec <- getSVD(dummy, k = 1, sing.vec = "right")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.