View source: R/getData4tum.herz.cer.ren.liv.nurs.R
getData4tum.herz.cer.ren.liv.nurs | R Documentation |
Get data on TUMOR, HI (heart insufficiency), CEREBROERK, CHRNIERE, CHRLEBER and nurse.home.
getData4tum.herz.cer.ren.liv.nurs(FRM_BAS, change_names = TRUE)
FRM_BAS |
data.table containing the table FRM_BAS 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), and the information on tumor status (TUMOR), heart insufficiency (HI), CEREBROERK, chronic renal disease (CHRNIERE), chronic liver disease (CHRLEBER), and the data on whether the patient is in a nursing home, in the wide format.
## Not run:
excel_fn <- paste0("/net/ifs1/san_projekte/projekte/",
"PROGRESS/Datenmanagement/Data_freezes/",
"20190320/PROGRESS-freeze_201903_01.xlsx")
FRM_BAS <- readxl::read_excel(excel_fn, 'FRM_BAS')
data.table::setDT(FRM_BAS)
toadd_tum.herz.cer.ren.liv.nurs <- getData4tum.herz.cer.ren.liv.nurs(FRM_BAS)
toadd_tum.herz.cer.ren.liv.nurs[]
toadd_tum.herz.cer.ren.liv.nurs <-
getData4tum.herz.cer.ren.liv.nurs(FRM_BAS, change_names = FALSE)
toadd_tum.herz.cer.ren.liv.nurs[]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.