getData4beat: Get the data on the (mechanical) ventilation.

View source: R/getData4beat.R

getData4beatR Documentation

Get the data on the (mechanical) ventilation.

Description

The columns in the returned data.table contain detailed information on the method by which the ventilation was applied. The last set of columns, bea.auf, bea.d0 and so on, say if ventilation was used at all, i.e., by any method.

Usage

getData4beat(FRM_BEAT)

Arguments

FRM_BEAT

data.table containing the table so named from the database of the PROGRESS study

Value

data.table with the ID of the patient (patstuid), and the data on the ventilation, in the wide format.

Examples

## Not run: 
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
FRM_BEAT <- readxl::read_excel(excel_fn, 'FRM_BEAT', guess_max = 10e5)
data.table::setDT(FRM_BEAT)
toadd_beat <- getData4beat(FRM_BEAT)
toadd_beat

## End(Not run)

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