joinProportionAndBootstrap: Merges dataframes of proportion of samples containing a...

Description Usage Arguments Value Examples

View source: R/getProportion.R

Description

Merges dataframes of proportion of samples containing a certain property and confidence intervals of proportions from bootstrapping samples

Usage

1
joinProportionAndBootstrap(df_map, level = "Drug.Class", B = 100)

Arguments

df_map

A dataframe of combined non-subsampled or subsampled mapping data and metadata

level

A string of a column name e.g. "Drug.Class"

B

A numerical value of the number of types to sample in bootstrapping

Value

A dataframe of proportions and 95

Examples

1
2
df_map <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/nonsubsampled_merged.csv", without_US_duplicates = TRUE)
df_map_pb <- joinProportionAndBootstrap(df_map, "Drug.Class", "saliva")

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