getData4map | R Documentation |
Extract data with CLIN_PARAM == "MAP-MIN" from the table DID_CLIN and transform it to the wide format.
getData4map(DID_CLIN)
DID_CLIN |
data.table containing the table DID_CLIN from the database of the PROGRESS study |
data.table in the wide format with one row per patient, identified by PATSTUIDs in the column "patstuid" and the values of the mean arterial pressure at each time.
## Not run:
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
DID_CLIN <- readxl::read_excel(excel_fn, "DID_CLIN")
data.table::setDT(DID_CLIN)
toadd_map <- getData4map(DID_CLIN)
toadd_map
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.