extractProgressEndpoints: get age and sex from the table DID_PROBAND

View source: R/extractProgressEndpoints.R

extractProgressEndpointsR Documentation

get age and sex from the table DID_PROBAND

Description

get age and sex from the table DID_PROBAND

Usage

extractProgressEndpoints(
  DID_SOFA,
  DID_EP_SERDIS = DID_EP_SERDIS,
  DID_CLIN = DID_CLIN,
  FRM_DIL_LABORWERTE = FRM_DIL_LABORWERTE,
  critMindVerschlechterung = 4,
  sofaEPonly = F
)

Arguments

DID_SOFA

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

DID_EP_SERDIS

as above

DID_CLIN

as above

FRM_DIL_LABORWERTE

as above

critMindVerschlechterung

I do not know

sofaEPonly

I do not know

Value

amed list with two elements "detailed" and "compact" containing data.tables.

Examples

## Not run: 
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
DID_SOFA <- readxl::read_excel(excel_fn, "DID_SOFA")
DID_EP_SERDIS <- readxl::read_excel(excel_fn, "DID_EP_SERDIS")
DID_CLIN <- readxl::read_excel(excel_fn, "DID_CLIN")
FRM_DIL_LABORWERTE <- readxl::read_excel(excel_fn, "FRM_DIL_LABORWERTE")
data.table::setDT(DID_SOFA)
data.table::setDT(DID_EP_SERDIS)
data.table::setDT(DID_CLIN)
data.table::setDT(FRM_DIL_LABORWERTE)
extractProgressEndpoints(DID_SOFA, DID_EP_SERDIS, DID_CLIN,
FRM_DIL_LABORWERTE)

## End(Not run)

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