add_tm_keys: Add tm (time_map) keys to remote database (new)

add_tm_keysR Documentation

Add tm (time_map) keys to remote database (new)

Description

This function adds time_map keys, created by 'build_tm_keys()' to a remote database. Keys can be added temporarily and/or overwritten. This function will first check if outpatient or inpatient keys already exist, and if overwite is set to FALSE it will not proceed. NOTE: This function generally only needs to be run once, after the mini database has been constructed.

Usage

add_tm_keys(db_con, overwrite = FALSE, temporary = TRUE)

Arguments

db_con

a connection to a database

overwrite

a logical indicator. If TRUE the existing inpatient_keys and/or outpatient_keys tables will be overwritten

temporary

a logical indicator. If TRUE the tables will only be added temporarilly to the database.

Value

Nothing will be returned, but tables may be added to the remote database


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