Description Usage Arguments Value Examples
Performs a robust PCA analysis.
1 2 | pca_robust(dataset, center = "median", scale = "mad", k = 10,
write.file = FALSE, file.out = "robpca", ...)
|
dataset |
list representing the dataset from a metabolomics experiment. |
center |
indicates how the data is to be centered. Can be a function or a vector with the center values of each column. |
scale |
indicates how the data is to be rescaled. Can be a function or a vector with the scale value of each column. |
k |
the desired number of components to compute |
write.file |
boolean value that indicates if the results from PCA analysis are going to be written on a file. |
file.out |
name of the file that will store the results. |
... |
additional parameters pass to or from other functions. |
Returns an object of class 'princomp' with the PCA results.
1 2 3 4 5 | ## Example of performing a robust PCA analysis
library(specmine.datasets)
data(cachexia)
pca.results = pca_robust(cachexia, center = "mean", scale = "mad",
k = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.