eigen2: Calculate eigendecomposition and return ordered eigenvalues...

Description Usage Arguments Value Examples

View source: R/eigen2.R

Description

Calculate eigendecomposition and return ordered eigenvalues and eigenvectors

Usage

1
eigen2(spd, decreasing = FALSE)

Arguments

spd

a semi-positive definite matrix

decreasing

argument passed to order()

Value

a list with 2 components, the eigenvalues and the eigenvectors

Examples

1
2
3
4
5
readr::read_tsv(system.file("extdata",
"mouse100.cXX.txt",
package = "gemma2"),
col_names = FALSE)[, 1:100] -> kinship
e_out <- eigen2(as.matrix(kinship))

Example output

── Column specification ────────────────────────────────────────────────────────
cols(
  .default = col_double(),
  X101 = col_logical()
)Use `spec()` for the full column specifications.

gemma2 documentation built on Oct. 24, 2020, 5:06 p.m.