bind_base_save: Bind, extract, and save laboratory data

View source: R/bind_base_save.R

bind_base_saveR Documentation

Bind, extract, and save laboratory data

Description

Bind all labs, extract baseline data, and save to CSV files.

Usage

bind_base_save(
  hospital,
  ptlist_file,
  lab_dir_path,
  lab_info_file = NULL,
  clean = TRUE,
  base_window_period = 4,
  savefile_name
)

Arguments

hospital

Select the hospital: seoul, bucheon, or cheonan.

ptlist_file

Patient list file which included "id" and "orderdate" column.

lab_dir_path

Directory path included excel files.

lab_info_file

Path of information file.

clean

Make a cleaned data or not.

base_window_period

Window period for baseline laboratory data (months).

savefile_name

The name of output file name.


nephroj/labbinder documentation built on Jan. 30, 2024, 4:31 a.m.