Description Usage Arguments Value See Also Examples
This function computes a Principal Component Analysis (PCA) on male horn
measurements using prcomp
. The PCA is computed on the centered
and scaled variables.
1 |
data |
A dataframe containing the data to be processed. |
A list providing the original data with the first 2 principal
components added to it, the proportion of variance explained by each
component, the cummulated proportion of variance explained by each
component, and the PCA object as returned by prcomp
.
1 2 | PCA_C1_males <- compute_PCA(males[males$Cohort == 'C1', ])
PCA_C2_males <- compute_PCA(males[males$Cohort == 'C2', ])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.