Description Usage Arguments Details Value Author(s) Examples
pca performs a principal components analysis (using princomp
function from stats
package) on the given numeric data matrix and returns the results as an object of class princomp.
1 2 3 4 5 6 7 8 |
x |
speciesData (either of singleSpecies or multiple Species) or a Raster object |
... |
additional arguments pass to |
pca analysis can be considered as a way to deal with multicollinearity problem and reduction of the data dimention. It returns two items in a list, data, and pca. The data contains the transoformed data into priciple components (the number of components is the same as the number of variable in the input data). You can check the pca item to see how many components (e.g., first 3) should be selected (e.g., by checking the loading table). For more information on the calculation, see the princomp
function.
a list including data (a data.frame or a RasterStack depending on the type of x), and pca results (output of the princomp function)
Babak Naimi naimi.b@gmail.com
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.