Update 0-data_prep.R
This commit is contained in:
parent
90eb564c11
commit
a172a82a71
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@ patients <- dplyr$tbl(db, "patients") %>%
|
|||
dplyr$select(-anchor_year, -anchor_year_group, -dod) %>%
|
||||
dplyr$collect()
|
||||
|
||||
admissions <- dplyr$tbl(db, "admissions") %>%
|
||||
dplyr$select(subject_id, race, hadm_id) %>%
|
||||
dplyr$collect()
|
||||
|
||||
|
||||
admissions <- admissions %>% dplyr$mutate(dplyr$across(race, factor))
|
||||
|
||||
# usable data set is using chart time as it appears
|
||||
# LIS uses different id's for groups of tests
|
||||
# BMP and CBC Results together
|
||||
|
|
Loading…
Reference in a new issue