"prcomp"
(Q-mode PCA) to objects of S3 class "princomp"
(R-mode PCA) or vice-versa. Not likely to be called by most users.q2rPCA(x)
r2qPCA(x)
"prcomp"
or class "princomp"
. It will be converted to a form that can be used by functions expecting either class."conPCA"
. Note that the order of the elements will vary depending upon the direction of conversion."princomp"
, or a copy of the rotations from "prcomp"
."princomp"
, or a copy of the x values from "prcomp"
."prcomp"
do not store the original call, so a place holder is used. Otherwise the unchanged call from "princomp"
."princomp"
, or computed from the 1st dimension of x in "prcomp"
."conPCA"
is pre-pended to the existing 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.prcomp
, princomp