augment_pca: Augment Original Data with PCA Scores

View source: R/unsupervised-pca.R

augment_pcaR Documentation

Augment Original Data with PCA Scores

Description

Add PC scores to the original dataset

Usage

augment_pca(pca_obj, data, n_components = NULL)

Arguments

pca_obj

A tidy_pca object

data

Original data frame

n_components

Number of PCs to add (default: all)

Value

Original data with PC scores added


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.