Extracts all tables from an input database into data.frames inside an isolated environment. If the env variable is set to .GlobalEnv, the objects will be assigned to variables in the users global environment. This might be convienent for some, but has the dangerous side effect of overwritting any existing objects with the same names in the global environment.

extract_data(db_file, env = new.env())

Arguments

db_file

character, the path to the database file to extract data from.

env

an environment to store the tables from the database

Value

environment, with one data.frame per table in the input database

Author

Matt Espe

Examples