runTtest: Runs a t-test between groups from a dataframe of paired...

Description Usage Arguments Value Examples

View source: R/boxplotsARGRichness.R

Description

Runs a t-test between groups from a dataframe of paired samples

Usage

1
runTtest(df_map_subsampled_pairs)

Arguments

df_map_subsampled_pairs

A dataframe of paired samples containing a column named "group" i.e. saliva vs. stool

Value

A dataframe of p-values, asterisks, countries and groups.

Examples

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)

blue-moon22/resistomeAnalysis documentation built on Jan. 17, 2020, 4:15 a.m.