% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unsupervised-pca.R
\name{augment_pca}
\alias{augment_pca}
\title{Augment Original Data with PCA Scores}
\usage{
augment_pca(pca_obj, data, n_components = NULL)
}
\arguments{
\item{pca_obj}{A tidy_pca object}

\item{data}{Original data frame}

\item{n_components}{Number of PCs to add (default: all)}
}
\value{
A tibble containing the original \code{data} with additional columns
for each principal component score (named \code{PC1}, \code{PC2}, etc.).
}
\description{
Add PC scores to the original dataset
}
\examples{
\donttest{
pca <- tidy_pca(USArrests)
augmented <- augment_pca(pca, USArrests, n_components = 2)
}

}
