read_edw_data: Read EDW data from csv files

Description Usage Arguments Details Value See Also

Description

read_edw_data takes a directory and file name and reads in all matching csv files and binds them together into a data frame

Usage

1
read_edw_data(data.dir, file.name, type = NA, check.distinct = TRUE)

Arguments

data.dir

A character string with the name of the directory containing the data files

file.name

A character string with name of data file or pattern to match

type

An optional character string indicating type of data being tidied

check.distinct

An optional logical, calls distinct on the imported data if TRUE

Details

This function takes a directory and file name and reads in all matching csv files and binds them together into a data frame using read_csv from the readr package.

Valid options for type include: blood, charges, cost, demographics, diagnosis*, encounters, events, home_meds, icd9, icd10, icu_assess, id, labs, locations, measures, meds_continuous, meds_sched, meds_sched_freq, mpp, mrn, orders, patients, problems, procedures**, procedures_icd9, procedures_icd10, radiology, services, surgeries, uop, vent_settings, vent_start, visits, vitals, warfarin

* diagnosis option is deprecated; use icd9 or icd10 instead

** procedures option is deprecated; use procedures_icd9 or procedures_icd10 instead

Value

A data frame (tbl_df)

See Also

read_csv


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.