Description Usage Arguments Value See Also Examples
A simple wrapper for pca on a data frame
1 |
data |
input data frame |
... |
variables to include in PCA |
doCenter |
passed to prcomp, center the data? TRUE / FALSE |
doScale |
passed to prcomp, scale the data? TRUE / FALSE |
nested tibble with entries:
pca = prcomp() output
data_aug = original data with bound PC scores
pc_weights = tibble of PCA vector weights
pc_frac = tibble of PCA eigenvalues and their cumulative (normalized) sum
prcomp
which this function wraps
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.