getData4map: get the data on the mean arterial pressure

View source: R/getData4map.R

getData4mapR Documentation

get the data on the mean arterial pressure

Description

Extract data with CLIN_PARAM == "MAP-MIN" from the table DID_CLIN and transform it to the wide format.

Usage

getData4map(DID_CLIN)

Arguments

DID_CLIN

data.table containing the table DID_CLIN from the database of the PROGRESS study

Value

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.

Examples

## 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)


maciejrosolowski/progressdatenbankderivate documentation built on Nov. 29, 2024, 3:39 a.m.