partial_projector.projector: construct a partial_projector from a 'projector' instance

View source: R/projector.R

partial_projector.projectorR Documentation

construct a partial_projector from a projector instance

Description

construct a partial_projector from a projector instance

Usage

## S3 method for class 'projector'
partial_projector(x, colind, ...)

Arguments

x

The original projector instance, typically an object of class bi_projector or any other class that implements a partial_projector method

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_projector method

Value

A partial_projector instance

Examples


X <- matrix(rnorm(10*10), 10, 10)
pfit <- pca(X, ncomp=9)
proj <- project(pfit, X)

pp <- partial_projector(pfit, 1:5)

bbuchsbaum/multivarious documentation built on April 15, 2024, 3:33 a.m.