harmanScores: A Principal components prcomp function tweaked for Harman

Description Usage Arguments Value

View source: R/harmanScores.R

Description

A tweaking of stats::prcomp such that for the svd, the transpose of u is used instead of v when the number of assays is less than the number of samples.

Usage

1

Arguments

x

matrix, data matrix of values to perform PCA on.

Value

scores, a prcomp-like object with rotation, scores and the center values. The scores are corrected, but all three are needed later to reconstruct the data.


Harman documentation built on Nov. 8, 2020, 7:50 p.m.