construct a partial_projector from a projector instance
partial_projector.projector.Rdconstruct a partial_projector from a projector instance
Usage
# S3 method for projector
partial_projector(x, colind, ...)Arguments
- x
The original
projectorinstance, typically an object of classbi_projectoror any other class that implements apartial_projectormethod- colind
A numeric vector of column indices to select in the projection matrix. These indices correspond to the variables used for the partial projector
- ...
Additional arguments passed to the underlying
partial_projectormethod
Examples
X <- matrix(rnorm(10*10), 10, 10)
pfit <- pca(X, ncomp=9)
proj <- project(pfit, X)
pp <- partial_projector(pfit, 1:5)