database: Wrapper for dbConnect

Description Usage Arguments Details Value Examples

View source: R/cprd_import.R

Description

Connects to a SQLite database or creates one if it does not already exist

Usage

1
database(dbname)

Arguments

dbname

character name path to database file

Details

If the '.sqlite' file extension is ommited from the dbname argument it is automatically added.

Value

SQLiteConnection object

Examples

1
2
3
4
## Not run: 
db <- database("mydb")

## End(Not run)

rOpenHealth/rEHR documentation built on March 19, 2018, 7:58 a.m.