build_time_map: Build longitudinal timemap from small db

build_time_mapR Documentation

Build longitudinal timemap from small db

Description

This function makes a time_map from the inpatient and outpatient visit keys, contained in a small database. IF keys are not found in the database, optional arguments allow keys to be generated temporarily (NOTE: this function cannot be used to permanently add keys to the database, to permanently add keys use, 'add_time_map_keys()').

Usage

build_time_map(db_con, collect_tab = collect_table())

Arguments

db_con

connection to the small database

collect_tab

(optional) a collection table. This argument is only used to make temporary, visit keys if no keys are found in the database

Value

a tibble containing the timemap


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