powered by
Performs a robust PCA analysis.
pca_robust(dataset, center = "median", scale = "mad", k = 10, write.file = FALSE, file.out = "robpca", ...)
list representing the dataset from a metabolomics experiment.
indicates how the data is to be centered. Can be a function or a vector with the center values of each column.
indicates how the data is to be rescaled. Can be a function or a vector with the scale value of each column.
the desired number of components to compute
boolean value that indicates if the results from PCA analysis are going to be written on a file.
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.
# NOT RUN { ## Example of performing a robust PCA analysis library(specmine.datasets) data(cachexia) pca.results = pca_robust(cachexia, center = "mean", scale = "mad", k = 10) # }
Run the code above in your browser using DataLab