getData4pco2: Get data on the partial pressure of carbon dioxide PCO2MIN.

View source: R/getData4pco2.R

getData4pco2R Documentation

Get data on the partial pressure of carbon dioxide PCO2MIN.

Description

The fucntion gets the value of PCO2MIN and returns its maximum for each patient and EVENT == 3 (inclusion) in kPa.

Usage

getData4pco2(FRM_B24)

Arguments

FRM_B24

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

Value

data.table with the ID of the patient (patstuid), and the data on the partial pressure of CO2 (in kPa), in the wide format (at EVENT == 3 only).

Examples

## Not run: 
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
FRM_B24 <- readxl::read_excel(excel_fn, 'FRM_B24')
data.table::setDT(FRM_B24)
toadd_pco2.max <- getData4pco2(FRM_B24)
toadd_pco2.max

## End(Not run)

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