filterFeatures {MMINP}R Documentation

Filter features of input table according to prevalence and/or abundance

Description

Filter features of input table according to prevalence and/or abundance.

Usage

filterFeatures(x, prev = NA, abund = NA)

Arguments

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.

Value

A filtered feature table will be returned.

Examples

data(train_metag)
d <- filterFeatures(train_metag, prev = 0.8)
dim(train_metag)
dim(d)

[Package MMINP version 0.1.0 Index]