View source: R/utility_functions.R
extract_loadings | R Documentation |
This is a wrapper function for stand_loadings() with added functionalities such as error breakers that is used by most functions in the package.
extract_loadings(pca, pca_data)
pca |
Object of class prcomp, princals or data.frame. If the object is a prcomp or princals object, pca_data is required, and the loadings will be extracted. If the object is a data.frame object, the dataframe needs to be formatted as: first column named Variables and all other columns corresponding to a PC. One row per variable. The values are the loadings. |
pca_data |
Data passed to the prcomp or princals function. |
A data.frame with the standardized loadings in the form of variables as rows and components as columns.
Abel Torres Espin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.