Create a data frame of principal components
1 | sm_tidy_pca(x, n = 3, scale = TRUE, item_name = "document")
|
x |
the matrix to compute principal components from. |
n |
number of components to compute |
scale |
logical; should columns by scaled before PCA |
item_name |
name to give to the set of rows; defaults to "document" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.