contam_test(.df, ..., otu = "otu", freq = "freq", conc = "PostPCRConc")
- the data frame
- the grouping variables (unquoted), i.e. ExtractionType and SampleType
- the column with unique otu names
- the column denoting OTU proportional abundance (as string)
- the column containing amplicon concentration data
the data frame with correlation results added in for each OTU
Test for an OTU's (inverse) correlation between its abundance and amplicon concentration.