getData4age.sex: get age and sex from the table DID_PROBAND

View source: R/getData4age_sex.R

getData4age.sexR Documentation

get age and sex from the table DID_PROBAND

Description

get age and sex from the table DID_PROBAND

Usage

getData4age.sex(DID_PROBAND, change_names = TRUE)

Arguments

DID_PROBAND

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

change_names

a logical value. If TRUE, then the names of the patient characteristics will be changed. This is expected by the functions which computed the severity scores.

Value

data.table with the ID of the patient (patstuid), age and sex

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)
toadd_agesex <- getData4age.sex(DID_PROBAND)
toadd_agesex <- getData4age.sex(DID_PROBAND, change_names = FALSE)

## End(Not run)

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