| q2rPCA {ChemoSpec} | R Documentation |
Utility to convert objects of S3 class prcomp (Q-mode PCA) to
objects of S3 class princomp (R-mode PCA) or vice-versa. An
internal function, not generally called by the user.
q2rPCA(x)
x |
An object of either class |
In the conversion, the necessary list elements are added; the old elements
are not deleted (and user added list elements are not affected). To
indicate this, the class attribute is updated to include class
conPCA. The new object can then be used by functions expecting
either class prcomp or princomp. For details of the structure of
prcomp or princomp, see their respective help
pages.
A list of class conPCA. Note that the order of the
elements will vary depending upon the direction of conversion.
loadings |
The loadings from |
scores |
The scores from
|
call |
The call. Objects of class |
n.obs |
The number of observations from
|
class |
|
sdev |
Unchanged from original. |
center |
Unchanged from original. |
scale |
Unchanged from original. |
Bryan A. Hanson, DePauw University.
https://github.com/bryanhanson/ChemoSpec