Created
November 14, 2014 19:48
-
-
Save Jfortin1/f254f1aa6d12da572b9e to your computer and use it in GitHub Desktop.
Fast eigenvalue decomposition for first 2 pcs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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