Skip to content

Instantly share code, notes, and snippets.

@Jfortin1
Created November 14, 2014 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jfortin1/f254f1aa6d12da572b9e to your computer and use it in GitHub Desktop.
Save Jfortin1/f254f1aa6d12da572b9e to your computer and use it in GitHub Desktop.
Fast eigenvalue decomposition for first 2 pcs
getPCS <- function(matrix, ncomp=2){
require(mixOmics)
nipals(matrix, ncomp = ncomp)$p
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment