R/eigen2.R
eigen2.Rd
Calculate eigendecomposition and return ordered eigenvalues and eigenvectors
eigen2(spd, decreasing = FALSE)
spd | a semi-positive definite matrix |
---|---|
decreasing | argument passed to order() |
a list with 2 components, the eigenvalues and the eigenvectors
readr::read_tsv(system.file("extdata", "mouse100.cXX.txt", package = "gemma2"), col_names = FALSE)[, 1:100] -> kinship#> #>