importQueries: importQueries: Imports queries from RAM front end

View source: R/importQueries.R

importQueriesR Documentation

importQueries: Imports queries from RAM front end

Description

This function imports the queries from a named ODBC datasource from NETN forest backend databases and prepares the data for plotting in wetlandViz.

Usage

importQueries(type = c("DSN", "file"), odbc = "RAM_FE", path = NA)

Arguments

type

Select whether to use the default Data Source Named database (DSN) to import data or a different database. If "DSN" is selected, must specify name in odbc argument.

"DSN"

Default. DSN database. If odbc argument is not specified, will default to "RAM_FE"

"file"

A different database than default DSN

odbc

DSN of the database when using type = DSN. If not specified will defaut to "RAM_FE", which is the front end of the MS Access RAM database that contains the queries to import.

path

Quoted path of database backend file, including the name of the backend.

Value

Assigns database tables to global environment

Examples

## Not run: 
# Import database in specific folder:
importQueries(type='file', path='./Data/NETN_RAM_Frontend.mdb')

# Import ODBC named database
importQueries(type='DSN', odbc="RAM_FE")

## End(Not run)


KateMMiller/wetlandACAD documentation built on Oct. 22, 2023, 12:29 a.m.