Description Usage Arguments Value Author(s) Examples
rsdFilter
removes from the dataframe the predictors with a relative standard deviation less
than or equal to an inserted threshold
1 |
data |
a n x p data frame with n observations and p columns. While the first two columns usually represent the names of the samples and the class labels related to each sample respectively, the remaining columns represent metabolite concentrations measured by 1H NMR or bins of 1H NMR spectra |
threshold |
a numeric value representing a limit: each predictor with a relative standard deviation lower than that will be removed form the dataframe |
exclude |
a logical variable which stores a simple True / False setting. If set to True the filtering method will exclude the first two columns. |
a list containing the filtered dataset, a vector with the names of the varables excluded and a vector with the indexes of the variables eliminated
Piergiorgio Palla
1 2 3 4 5 | ## load the included example dataset
data(cachexiaData)
## call rsdFilter with the parameter exclude set to TRUE (default)
## in order to exclude the first two columns of the dataset from scaling
data.filtered <- rsdFilter(cachexiaData, threshold = 15, exclude = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.