ProjectTemplate (version 0.4-2)

db.reader: Read a SQlite3 database with a (.db) file extension.

Description

This function will load all of the data sets stored in the SQlite3 database into the global environment. If you want to specify a single table or query to execute against the database, move it elsewhere and use a .sql file interpreted by sql.reader.

Usage

db.reader(data.file, filename, variable.name)

Arguments

data.file
The name of the data file to be read.
filename
The path to the data set to be loaded.
variable.name
The name to be assigned to in the global environment.

Value

  • No value is returned; this function is called for its side effects.

Examples

Run this code
library('ProjectTemplate')

db.reader('example.db', 'data/example.db', 'example')

Run the code above in your browser using DataCamp Workspace