get_linked_all_truven: Get Linked All

View source: R/build_db_functions.R

get_linked_all_truvenR Documentation

Get Linked All

Description

This function goes to the main database and pulls...

Usage

get_linked_all_truven(
  table_name,
  source,
  year,
  join_table,
  join_by = "enrolid",
  con,
  collect_n = 10
)

Arguments

table_name

name of table to pull

source

"ccae" or "mdcr" or c("ccae","mdcr")

year

vector of years to collect. Note: if no argument is provided all years will be selected

join_table

a table containing enrolids (or other) to join on

join_by

a vector of variables to join by in the join table

con

a database connection

collect_n

number of rows to collect

Value

A list containing three tibbles (timemap, outpatient keys, and inpatient keys)


aarmiller/smallDB documentation built on March 29, 2024, 9:37 a.m.