hydat_set_db: Set/get the internal pointer to the Hydat database

Description Usage Arguments Value Examples

Description

The functions in this package require the Hydat database to be loaded using hydat_load or hydat_set_db(), or for one to be explicitly passed to each function. Generally this is done using hydat_load with set = TRUE.

Usage

1
2
3
4
5

Arguments

x

A hydat datbase loaded using hydat_load.

set

Shoult the temporary database be set as the internal database?

Value

The hydat database or the previous hydat database.

Examples

1
2
3
4
5
6
7
## Not run: 
hydat_download()
hydat_extract()
hydat_db <- hydat_load() # this calls hydat_set_db()
hydat_set_db(hydat_db) # this is redundant unless set = FALSE in hydat_load()

## End(Not run)

paleolimbot/hydatr documentation built on May 3, 2019, 5:49 p.m.