Description Usage Arguments Author(s) Examples
Takes a matrix with NAs and returns a matrix without NAs. Takes data.mat and calculates and returns predicted data.mat. Uses by default a 2 component PCA model. No centering or scaling. Supports NAs and similar. Rownames/colnames are retained. Columns/rows with only NAs (or similar) are removed.
1 | PCA.Filler(data.mat, num.of.pcs = 2)
|
data.mat |
a numeric matrix or data frame. Long, wide and squared matrix supported. NAs supported. |
num.of.pcs |
is an integer specifying the number of components to be used. Default 2. |
Berntsson, Martin <martin.berntsson@eon.se> and de Saint-Aubain, Philip Anton <philip-anton.desaint-aubain@knowit.dk>
1 2 3 | data.mat <- airquality[, 1:4]
data.mat
PCA.Filler(data.mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.