remove_taxons: Remove taxa from a Dataset object.

View source: R/remove_taxons.r

remove_taxonsR Documentation

Remove taxa from a Dataset object.

Description

Remove taxa from a Dataset object.

Usage

remove_taxons(Dat, taxons)

Arguments

Dat

A Dataset object.

taxons

String vector indicating which taxa to remove. Taxon IDs must be equal to the row names of the abundance table on Dat.

Value

A Dataset object.

Author(s)

Sur Herrera Paredes

See Also

remove_samples

Examples

data(Rhizo)
data(Rhizo.map)
Dat <- create_dataset(Rhizo, Rhizo.map)
Dat <- remove_samples(Dat,
                      colnames(Dat$Tab)[1:50])
Dat <- remove_taxons(Dat,
                     row.names(Dat$Tab)[1:115])
sum(colSums(Dat$Tab) == 0)
sum(rowSums(Dat$Tab) == 0)

Dat$Tab
Dat.clean <- clean(Dat)
Dat.clean$Tab

surh/AMOR documentation built on Feb. 21, 2023, 6:31 a.m.