getExampleAntibiogramDAI: An example antibiogram.

Description Usage Value Examples

Description

An example antibiogram.

Usage

1

Value

An example antibiogram. Numbers are percent resistant (or non-susceptible).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#Revise the antibiogram and recalculate. PDR Acinetobacter example
pdrAcinetoAbg = getExampleAntibiogramDAI()
pdrAcinetoAbg$A.baumannii[!is.na(pdrAcinetoAbg$A.baumannii)]=100
EmpiricTherapyIndicesDAI(pdrAcinetoAbg)

#Save the example antibiogram as a delimited text file that can be edited in Excel
write.table(getExampleAntibiogramDAI(),file="myAntibiogram.txt",sep = "\t",row.names=F)

myRevisedAbg = read.table(file="myAntibiogram.txt",header=T)
EmpiricTherapyIndicesDAI(myRevisedAbg)

#Calculate the indices without reserve drugs:
ReserveDrugs = c("amika","cefta","dapto","eryth","genta","linez","merop","tobra")
abgWithoutReserves = subset(getExampleAntibiogramDAI(),!is.element(drug_d,ReserveDrugs))
EmpiricTherapyIndicesDAI(abgWithoutReserves)

josie-hughes/EmpiricTherapyIndices documentation built on May 19, 2019, 9:40 p.m.