db_get: Get data from the Distance project database

Description Usage Arguments Value Note Author(s)

View source: R/db_get.R

Description

This function is a wrapper around either calls to RODBC (on Windows) or mdb.get (on Unix-a-like systems). Given a database file name it will return either the contents of the table (as data.frame), if table=NULL then it will return all tables and if table=TRUE then it will return a character vector of table names.

Usage

1

Arguments

file

the path to the database file to access

table

the table to extract (if NULL all tables are extracted, if TRUE a list of tables names are extracted)

Value

a data.frame with the contents of a database table

Note

Currently not implemented on Windows systems.

Author(s)

David L Miller


DistanceDevelopment/readdst documentation built on Sept. 21, 2021, 10:41 p.m.