Skip to contents

This function performs Principal Component Analysis (PCA) on the input data.

Usage

perform_pca(data, scale_data = TRUE, center_data = TRUE)

Arguments

data

The input data frame.

scale_data

Logical indicating whether to scale the data (default is TRUE).

center_data

Logical indicating whether to center the data (default is TRUE).

Value

A list containing the PCA results, including the principal component scores and other attributes.