remove_reps {OTUtable} | R Documentation |
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
Author(s)
Alexandra Linz <amlinz16@gmail.com>
Examples
data(otu_table)
no_reps <- remove_reps(otu_table)
[Package OTUtable version 1.1.2 Index]