View source: R/filterFeatures.R
filterFeatures | R Documentation |
Filter features of input table according to prevalence and/or abundance.
filterFeatures(x, prev = NA, abund = NA)
x |
A matrix or data frame. |
prev |
A numeric ranging from 0 to 1, the minimum prevalence of features to be retained. If set to NA, means no need to filter prevalence. |
abund |
A numeric greater than 0, the minimum abundance (mean) of features to be retained. If set to NA, means no need to filter abundance. |
A filtered feature table will be returned.
data(train_metag) d <- filterFeatures(train_metag, prev = 0.8) dim(train_metag) dim(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.