extractProbandInfos: get patient characteristics from the table DID_PROBAND

View source: R/extractProbandInfos.R

extractProbandInfosR Documentation

get patient characteristics from the table DID_PROBAND

Description

get patient characteristics from the table DID_PROBAND

Usage

extractProbandInfos(
  DID_PROBAND,
  parameter = c("ZENTRUM", "AGE", "SEX", "WEIGHT", "HEIGHT", "BMI", "COB", "COBM",
    "COBF", "ABKDAYS_BEVOR", "CAPSYS")
)

Arguments

DID_PROBAND

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

parameter

a character vector with the names of the charcteristics to be extracted.

Value

a data.table with the PATSTUID and the extracted or computed patient characteristics.

Examples

## Not run: 
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
DID_PROBAND <- readxl::read_excel(excel_fn, "DID_PROBAND")
data.table::setDT(DID_PROBAND)
extractProbandInfos(DID_PROBAND, parameter = "BMI")
extractProbandInfos(DID_PROBAND, parameter = c("BMI", "AGE"))

## End(Not run)

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