Description Usage Arguments Value Examples
View source: R/selectFeature.R
Using different strategies to select features of data.
1 | selectFeature(data, method = "VAR", select_number = 1)
|
data |
A data matrix. |
method |
A string means the method of feature selection, choosing from "MAD", "VAR" and "PCA". "MAD": using median absolute deviation to select features. "VAR": select features according to the variance of each feature. "PCA": using principal component analysis to select features. |
select_number |
A real value from 0 to 1 which means the ratio of features we want to select. For "PCA", this parameter indicates the number of features to be selected instead of the ratio. |
The data matrix after feature selection.
1 2 | data(COAD_Methy)
COAD_Methy <- selectFeature(COAD_Methy, method = 'VAR', select_number = 0.7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.