Learn R Programming

OTUtable (version 1.1.2)

remove_reps: Remove the second replicate of each sample, when it exists

Description

Sometimes it is desirable to remove replicate samples (often for plotting). This command removes all samples marked as replicate 2. Please note that you should always check the similarity of replicates for your metric of interest before removing them for aesthetic purposes.

Usage

remove_reps(table)

Arguments

table

An OTU table containing the relative abundances of each OTU

Value

Returns an OTU table containing only one replicate for each sample

Examples

Run this code
# NOT RUN {
 data(otu_table)
 no_reps <- remove_reps(otu_table)
# }

Run the code above in your browser using DataLab