Description Usage Arguments Value Examples
View source: R/getProportion.R
Combines proportions and confidence intervals from non-subsampled and equivalent subsampled samples
1 | combineSubsampled(df_map, df_map_sub, level)
|
df_map |
A dataframe of combined non-subsampled mapping data and metadata |
df_map_sub |
A dataframe of combined subsampled mapping data and metadata |
level |
A string of a column name e.g. "Drug.Class" |
A dataframe with proportions and confidence intervals from non-subsampled and equivalent subsampled samples
1 2 3 4 | df_map <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/nonsubsampled_merged.csv", without_US_duplicates = TRUE)
df_map_sub_saliva <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/subsampled_saliva_merged.csv", without_US_duplicates = TRUE)
df_map_pb_comb <- combineSubsampled(df_map, df_map_sub_saliva, "Drug.Class", "saliva")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.