opendt: Open Data Table

View source: R/opendt.R

opendtR Documentation

Open Data Table

Description

Open Data Table

Usage

opendt(
  data_in,
  cols_in = NULL,
  date_in = NULL,
  start_date = NULL,
  end_date = NULL,
  patient_list = NULL
)

Arguments

data_in

character filepath to data. If data saved in standard structure from aurum_pipeline() then only table name is required, eg 'Observation', otherwise use full file path.

cols_in

character vector of column names to load in

date_in

character name of date field to filter on

start_date

Date to filter from (inclusive)

end_date

Date to filter to (inclusive)

patient_list

Vector of patient ids to filter to

Value

A data.table()

Examples

## Not run: 
opendt('Patient', date_in = 'regstartdate', start_date = '2020-01-01', end_date = '2020-01-31')
## End(Not run)

HFAnalyticsLab/aurumpipeline documentation built on April 14, 2023, 12:34 p.m.