phyloseq_merge_samples: Merge samples by name

View source: R/phyloseq_merge_samples.R

phyloseq_merge_samplesR Documentation

Merge samples by name

Description

This function will merge samples (specified by their names) in a phyloseq-object.

Usage

phyloseq_merge_samples(phys, samples_to_merge, new_id = NULL)

Arguments

phys

A phyloseq-class object

samples_to_merge

Character vector of sample names that should be merged

new_id

Name of the new sample

Details

Sample metadata of the first ID from 'samples_to_merge' will be used as a representative for a group.

Value

Phyloseq-object.


vmikk/metagMisc documentation built on June 20, 2024, 7:20 a.m.