projector | R Documentation |
projector
instanceA projector
maps a matrix from an N-dimensional space to d-dimensional space, where d
may be less than N
.
The projection matrix, v
, is not necessarily orthogonal. This function constructs a projector
instance which can be
used for various dimensionality reduction techniques like PCA, LDA, etc.
projector(v, preproc = prep(pass()), ..., classes = NULL)
v |
A matrix of coefficients with dimensions |
preproc |
A prepped pre-processing object. Default is the no-processing |
... |
Extra arguments to be stored in the |
classes |
Additional class information used for creating subtypes of |
An instance of type projector
.
X <- matrix(rnorm(10*10), 10, 10)
svdfit <- svd(X)
p <- projector(svdfit$v)
proj <- project(p, X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.