getData4o2p.min: Get data on the oxygen saturation.

View source: R/getData4o2p.min.R

getData4o2p.minR Documentation

Get data on the oxygen saturation.

Description

A minimum of the oxygen saturation levels, if there were several measurements performed with different methods.

Usage

getData4o2p.min(FRM_O2P)

Arguments

FRM_O2P

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

Value

data.table with the ID of the patient (patstuid), and the data on the oxygen saturation, 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_O2P <- readxl::read_excel(excel_fn, 'FRM_O2P')
data.table::setDT(FRM_O2P)
toadd_o2p.min <- getData4o2p.min(FRM_O2P)
toadd_o2p.min

## End(Not run)

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