Update 0-data_prep.R

This commit is contained in:
Kyle Belanger 2023-01-23 07:22:09 -05:00
parent 90eb564c11
commit a172a82a71

View file

@ -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