Description Usage Arguments Value Examples
Hiermee worden direct alle eerste isolaten toegevoegd aan een tabel, zie first_isolate
.
1 2 3 4 5 6 7 | tbl_first_isolates(x, col_mo = "bacteriecode",
col_date = "ontvangstdatum",
col_patient_id = sort(colnames(x))[sort(colnames(x)) %in% c("patid",
"patidnb")][1], col_testcode = NULL, col_specimen = "mtrlgroep",
col_icu = "is_ic", episode_days = 365, testcodes_exclude = "",
icu_exclude = FALSE, ignore_I = TRUE, info = TRUE,
timestamp = FALSE)
|
x |
Een |
col_mo |
Standaard is |
col_date |
Standaard is |
col_patient_id |
Standaard is |
col_testcode |
Standaard is |
col_specimen |
Standaard is |
col_icu |
Standaard is |
episode_days |
Standaard is |
testcodes_exclude |
Standaard is leeg. De lijst met testcodes waarvan de isolaten genegeerd moeten worden (hoofdletterONgevoelig). Gebruik voor het uitsluiten van screeningskweken |
icu_exclude |
Standaard is |
info |
Standaard is |
timestamp |
Standaard is |
tabel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | ## Not run:
# snel alles toevoegen:
x <- tbl_first_isolates(x)
# controleren dat het werkt:
examples_isolates %>%
tbl_first_isolates(col_date = "date",
col_patient_id = "patient_id",
col_mo = "bactid",
col_icu = NULL,
col_specimen = NULL) %>%
pull(eerste_isolaat_gewogen) %>%
sum()
# of per type (AMR-pakket):
x$sleutelab <- key_antibiotics(x)
x$eerste_isolaat <-
first_isolate(x)
x$eerste_isolaat_gewogen <-
first_isolate(x,
col_keyantibiotics = 'sleutelab')
x$eerste_bloedisolaat <-
first_isolate(x,
specimen_group = 'Bloed')
x$eerste_bloedisolaat_gewogen <-
first_isolate(x,
specimen_group = 'Bloed',
col_keyantibiotics = 'sleutelab')
# enz.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.