View source: R/PCAScoreMatrix.R
| PCAScoreMatrix | R Documentation |
Construct a S3-class PCAScoreMatrix object
PCAScoreMatrix(scoreMatrix, expVar)
scoreMatrix |
Numeric matrix, objects in rows and PCs in columns |
expVar |
Numeric vector, length must equal the number of columns of
|
A S3-class PCAScoreMatrix object, which is a score matrix
with explained variances (expVar) as attribute.
as.matrix.PCAScoreMatrix, expVar.PCAScoreMatrix,
print.PCAScoreMatrix. This function is usually not called by the end
user; instead, it is used by the function pcaScores
myPCmat <- PCAScoreMatrix(matrix(rnorm(15),ncol=3), c(0.25, 0.15, 0.1))
myPCmat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.