reconstruct.pca: Reconstruct Data from PCA Results

View source: R/pca.R

reconstruct.pcaR Documentation

Reconstruct Data from PCA Results

Description

Reconstructs the original (centered) data matrix from the PCA scores and loadings.

Usage

## S3 method for class 'pca'
reconstruct(x, comp = 1:ncomp(x), ...)

Arguments

x

A pca object.

comp

Integer vector specifying which components to use for reconstruction (default: all components in x).

...

Extra arguments (ignored).

Value

A matrix representing the reconstructed data in the original scale (preprocessing reversed).


bbuchsbaum/multivarious documentation built on July 16, 2025, 11:04 p.m.