calc_taxa_means: Calculate mean taxa values across a specified factor

View source: R/normalization.R

calc_taxa_meansR Documentation

Calculate mean taxa values across a specified factor

Description

Use this function with a taxa table or taxa summary table to return mean values across multiple samples representing a sample type

Usage

calc_taxa_means(input, summarize_by_factor, metadata_map)

Arguments

input

The input dataset as loaded by load_taxa_table or a taxa table of class data.frame.

summarize_by_factor

Category in mapping file to summarize by.

metadata_map

[Optional] The metadata mapping data frame. Required if input is a data.frame.

Value

If input is a list, returns a list with a taxa table (data_loaded) and a mapping data frame (map_loaded), i.e. the output of load_taxa_table. It will automatically return taxonomy in the list if provided in the input.

Examples

calc_taxa_means(fruits_veggies, 'Sample_type')

leffj/mctoolsr documentation built on Aug. 5, 2022, 1:27 a.m.