Learn R Programming

PAMpal (version 1.4.4)

addDatabase: Add a Database to a PAMpalSettings Object

Description

Adds a new function to the "function" slot in a PAMpalSettings object. Interactively asks for database files if none are supplied as input

Usage

addDatabase(pps, db = NULL, verbose = TRUE)

Value

the same PAMpalSettings object as pps, with the database

db added to the "db" slot

Arguments

pps

a PAMpalSettings object to add a database to

db

database(s) to add, or single directory containing databases

verbose

logical flag to show messages

Author

Taiki Sakai taiki.sakai@noaa.gov

Examples

Run this code

# not recommended to create a pps like this, for example only
pps <- new('PAMpalSettings')
db <- system.file('extdata', 'Example.sqlite3', package='PAMpal')
pps <- addDatabase(pps, db)
pps

Run the code above in your browser using DataLab