merge_into_phyloseq: Add New Sample Data into Phyloseq Object

View source: R/phylosequtils.R

merge_into_phyloseqR Documentation

Add New Sample Data into Phyloseq Object

Description

Allows incorporation of new sample data (a dataframe) to be merged into an existing phyloseq object.

Usage

merge_into_phyloseq(dataframe, ps_object, variable)

Arguments

dataframe

The dataframe containing new data to be incorporated.

ps_object

The phyloseq object to be updated with new data.

variable

The variable (column in data) as a string by which to merge new data into phyloseq object. Variable name and values must be identical between the dataframe and the phyloseq object

Value

An updated phyloseq object with the new data incorporated into sample data.


ammararuby/MButils documentation built on Jan. 29, 2023, 11:13 a.m.