Setting the .groups option in summarize: Improving the readability of R your code (CC036)
Channel: Riffomonas Project
Date: 05/10/2020

In this screencast tutorial, Pat Schloss shows how you can use the .groups option in summarize to impact the grouping of the data frame outputted from dplyr's summarize function. He'll use the group_by and summarize functions to generate a plot of the bacterial and archaeal 16S rRNA gene copy number at each taxonomic rank. This episode is part of a larger arc of episodes investigating the sensitivity and specificity of amplicon sequence variants (ASVs), also known as exact sequence variants (ESVs). ASVs are growing in popularity for analyzing microbial communities using 16S rRNA gene sequences. Pat demonstrates these concepts by live coding at the command line interface using RStudio, GitHub Flow, and make.

The accompanying blog post contains the exercises and solutions can be found at http://www.riffomonas.org/code_club/2020-10-05-group-by-summarize