View source: R/getData4age_sex.R
getData4age.sex | R Documentation |
get age and sex from the table DID_PROBAND
getData4age.sex(DID_PROBAND, change_names = TRUE)
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. |
data.table with the ID of the patient (patstuid), age and sex
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.