df_glom: Like tax_glom, but for data frames

View source: R/prep_plot_rank_ab.R

df_glomR Documentation

Like tax_glom, but for data frames

Description

df_glom() take totals within sample at a given taxonomic rank.

Usage

df_glom(
  phy_df,
  ranks,
  IDcol = "X.SampleID",
  rank = "Phylum",
  abunds = "Abundance"
)

Arguments

phy_df

A phyloseq data frame, as generated by phyloseq::psmelt() or make_phy_df()

ranks

A character vector with the taxon rank names

IDcol

The column name of the sample IDs

rank

The taxonomic rank to glom at

abunds

The column name of the abundances to sum

tots

The desired column name of the summed (glommed) abundances


JCSzamosi/aftersl1p documentation built on July 3, 2025, 8:37 p.m.