Description Usage Arguments Value Author(s) See Also
View source: R/tdmPreprocUtils.r
The PCA rotation is taken from pcaList
, a value returned from a prior call to tdmPrePCA.train
.
1 | tdmPrePCA.apply(dset, pcaList, opts, dtrain = NULL)
|
dset |
the data frame with the new data |
pcaList |
a value returned from a prior call to |
opts |
a list from which we need here the following entries:
|
dtrain |
[NULL] optional, only needed in case that dset is a 0-row-data frame: then we 'borrow' the columns from dtrain,
the data set returned from |
pca
, a list with entries:
dset |
the input data frame dset with columns numeric.variables replaced by the PCs with names PC1, PC2, ... (in case PRE.PCA=="linear") or with names KP1, KP2, ... (in case PRE.PCA=="kernel") and optional with monomial columns added, if PRE.PCA.npc>0 |
numeric.variables |
the new column names for PCs and for the monomials |
Wolfgang Konen, FHK, Mar'2011 - Jan'2012
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.