Description Usage Arguments Value
Takes Tidy data and Generates pca.object that retains information of original data.
1 2 |
tidydata |
Tidy data input |
y |
column name(s) or index(es) of columns whose interaction is used as y component of formula in dcast's formula = y~x. y or the interaction of columns passed to y becomes the 'individuals' of the pca. This interaction forms an 'id.col' that is added to the original data frame and used to join pca components and the original data frame. |
x |
column name(s) or index(es) of columns whose interaction is used as y component of formula in dcast's formula = y~x. x or the interaction of columns passed to x becomes the 'variables' of the pca. |
value.var |
Character string of name of column which stores values. |
scale |
Logical, scales the variables to have the same unit variance. Default set to FALSE. |
num.degrees |
Integer that determines the number of principal components to join to the orginal data frame. Default set to 5. |
invert |
Logical, determines if mean centering should be inverted or not. Default set to FALSE. |
returns pca object that is a list of "data","loadings","values", "covariance","contribution"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.