aggFeatures {microbiomeExplorer}R Documentation

Aggregates counts by level

Description

This function aggregates counts by a level specified in the featureData slot of the MRexperiment object.

Usage

aggFeatures(MRobj, level = NULL, sort = TRUE)

Arguments

MRobj

An MRexperiment object.

level

Level to aggregate over. If NULL, no aggregation occurs.

sort

boolean determining if resulting aggregated MRexperiment should be sorted based on rowSums; default is TRUE

Value

Aggregated MRexperiment object or matrix depending on out.

Examples

data("mouseData", package = "metagenomeSeq")
aggFeatures(mouseData, level = "genus")


[Package microbiomeExplorer version 1.3.0 Index]