View source: R/dataPreprocessing.R
performPCA | R Documentation |
Executes PCA on the provided dataset and summarizes the results.
performPCA(dataset, ncp = NULL, scale = TRUE, visualize = FALSE)
dataset |
A data frame to be analyzed via PCA. |
ncp |
An integer specifying the number of principal components to retain, default is 5. |
scale |
A boolean indicating whether to scale the data, default is TRUE. |
A list containing the PCA results, summary of eigenvalues, contributions, coordinates, and more.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.