replaced bactid by mo

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2018-08-31 13:36:19 +02:00
1 parent 98ff131680
commit 5965d3c794
41 files changed
+786 -411

No files matched your search

+3 -3
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,