mp_stat_taxa {MicrobiotaProcess} | R Documentation |
Count the number and total number taxa for each sample at different taxonomy levels
mp_stat_taxa(.data, .abundance, action = "add", ...) ## S4 method for signature 'MPSE' mp_stat_taxa(.data, .abundance, action = "add", ...) ## S4 method for signature 'tbl_mpse' mp_stat_taxa(.data, .abundance, action = "add", ...) ## S4 method for signature 'grouped_df_mpse' mp_stat_taxa(.data, .abundance, action = "add", ...)
.data |
MPSE or tbl_mpse object |
.abundance |
the column name of abundance to be calculated |
action |
a character "get" returns a table only contained the number and total number for each sample at different taxonomy levels, "only" returns a non-redundant tibble contained a nest column (StatTaxaInfo) and other sample information, "add" returns a update object (.data) contained a nest column (StatTaxaInfo). |
... |
additional parameter |
update object or tbl_df according action argument
Shuangbin Xu
data(mouse.time.mpse) mouse.time.mpse %>% mp_stat_taxa(.abundance=Abundance, action="only")