removeLowAbundance: Remove lowest abundance species

View source: R/removeLowAbundance.R

removeLowAbundanceR Documentation

Remove lowest abundance species

Description

Removes a number of lowest total abundace species from a dataset generated with generateDataSet. Note that the function uses the normalized dataset to decide which species to remove, but returns the absolute dataset.

Usage

removeLowAbundance(dataset, removeN)

Arguments

dataset

Abundance dataset

removeN

Number of species to remove

Value

Dataset without N lowest abundance species

Examples

klemm = generateA(N=10, type="klemm", c=0.5)
dataset = generateDataSet(100, klemm)
dataset = removeLowAbundance(dataset, 10)

hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.