`corpca`

is an auxiliary function that performs principal components analysis on a dataset. It returns an object `x`

which contains the loadings, the scores and the singular values of the `K`

first principal components.
It handles missing values in a dataset and actually computes the eigen elements of the `n x n`

covariance matrix, where `n`

is the number of individuals.

1 |

`data` |
a data matrix or a data frame. |

`K` |
an integer specifying the number of principal components that are retained. |

1 | ```
x <- NULL
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.