1
0
mirror of https://github.com/msberends/AMR.git synced 2025-09-02 19:44:04 +02:00

replaced bactid by mo

This commit is contained in:
2018-08-31 13:36:19 +02:00
parent 98ff131680
commit 5965d3c794
41 changed files with 786 additions and 411 deletions

View File

@@ -71,13 +71,13 @@ tbl \%>\%
library(dplyr)
septic_patients \%>\%
# get bacteria properties like genus and species
left_join_microorganisms("bactid") \%>\%
left_join_microorganisms("mo") \%>\%
# calculate first isolates
mutate(first_isolate =
first_isolate(.,
"date",
"patient_id",
"bactid",
"mo",
col_specimen = NA,
col_icu = NA)) \%>\%
# filter on first E. coli isolates
@@ -95,7 +95,7 @@ septic_patients \%>\%
if (!require(ggplot2)) {
data <- septic_patients \%>\%
filter(bactid == "ESCCOL") \%>\%
filter(mo == "ESCCOL") \%>\%
resistance_predict(col_ab = "amox",
col_date = "date",
info = FALSE,