getDBkey: Retrieve DBkeys from DBHYDRO

View source: R/getDBkey.R

getDBkeyR Documentation

Retrieve DBkeys from DBHYDRO

Description

Retrieves all DBkeys associated with a given station.

Usage

getDBkey(stn = "S333", type = "all", freq = "all", activeOnly = TRUE)

Arguments

stn

character string. Case insensitive.

type

type of data desired, e.g., "FLOW" or "STG". Must be a perfect match, so it's a good idea to leave this set to "all".

freq

desired data frequency, e.g., "DA" or "INST". Must be a perfect match, so it's a good idea to leave this set to "all".

activeOnly

logical (default = TRUE). If set to TRUE, only active DBKeys are reported. "Active" is defined as having new data within the last three months (to accommodate lengthy pandemic disruptions)

Value

dataframe getDBkey returns a dataframe of data

Examples

## Not run: 
getDBkey(stn = "S12d", type = "FLOW")

## End(Not run)


troyhill/SFNRC documentation built on Dec. 30, 2024, 4:32 p.m.