Extract CC-HIC Data
extract(core_table = NULL, code_name = NULL, translate_site = NULL)
core_table | core table returned from |
---|---|
code_name | a string vector of length 1 with the CC-HIC data item to be extracted. |
translate_site | a lookup table to translate site names on export in a
consistent way. The table requires two columns: |
A tibble with 1 row per event
Extracts CC-HIC data from the database events tables and appends them with the correct class for further processing.
if (FALSE) { # ctn <- DBI::dbConnect() create database connection core <- make_core(ctn) df <- extract(core, "NIHR_HIC_ICU_0108") }