Description Usage Arguments Value Examples
View source: R/boxplotsARGRichness.R
Runs a t-test between groups from a dataframe of paired samples
1 | runTtest(df_map_subsampled_pairs)
|
df_map_subsampled_pairs |
A dataframe of paired samples containing a column named "group" i.e. saliva vs. stool |
A dataframe of p-values, asterisks, countries and groups.
1 2 3 4 5 | df_map_subsampled <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/subsampled_argrich_merged.csv", without_US_duplicates = TRUE)
pair_list <- list(c("stool", "dental"), c("stool", "saliva"), c("dental", "saliva"), c("stool", "dorsum of tongue"), c("stool", "buccal mucosa"), c("dorsum of tongue", "buccal mucosa"), c("dorsum of tongue", "dental"), c("buccal mucosa", "dental"))
df_map_subsampled_pairs <- createPairedData(df_map_subsampled, pair_list)
ttest_groups <- runTtest(df_map_subsampled_pairs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.