getData4pleu: Get data on pleural effusion.

View source: R/getData4pleu.R

getData4pleuR Documentation

Get data on pleural effusion.

Description

Get data on pleural effusion.

Usage

getData4pleu(FRM_BEF, FRM_VIS)

Arguments

FRM_BEF

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

FRM_VIS

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

Value

data.table with the ID of the patient (patstuid), and the data on pleural effusion (PLEUERGUSS from FRM_BEF, FRM_VIS), 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_BEF <- readxl::read_excel(excel_fn, 'FRM_BEF')
FRM_VIS <- readxl::read_excel(excel_fn, 'FRM_VIS')
data.table::setDT(FRM_BEF)
data.table::setDT(FRM_VIS)
toadd_pleu <- getData4pleu(FRM_BEF, FRM_VIS)
toadd_pleu

## End(Not run)

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