getData4tum.herz.cer.ren.liv.nurs: Get data on TUMOR, HI (heart insufficiency), CEREBROERK,...

View source: R/getData4tum.herz.cer.ren.liv.nurs.R

getData4tum.herz.cer.ren.liv.nursR Documentation

Get data on TUMOR, HI (heart insufficiency), CEREBROERK, CHRNIERE, CHRLEBER and nurse.home.

Description

Get data on TUMOR, HI (heart insufficiency), CEREBROERK, CHRNIERE, CHRLEBER and nurse.home.

Usage

getData4tum.herz.cer.ren.liv.nurs(FRM_BAS, change_names = TRUE)

Arguments

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.

Value

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.

Examples

## 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)

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