Learn R Programming

countyfloods (version 0.0.2)

find_nws: Get National Weather Service (NWS) flood stage/discharge levels for gages.

Description

Use National Weather Service designated flood stages/discharges as flood thresholds. These come in four levels: "action", "flood", "moderate", and "major".

Usage

find_nws(site_no, type = "flood")

Arguments

site_no
Character vector with USGS gage IDs of stream gage sites to pull.
type
Character string with the type of flood stage to be used. Can be one of four options: "action", "flood", "moderate", and "major". Defaults to "flood".

Value

Data frame of gage IDs and the corresponding NWS flood value, if available.

Examples

Run this code

va_counties <- get_county_cd("Virginia")
va_gages <- get_gages(va_counties, start_date = "2015-01-01",
                      end_date = "2015-12-31")
va_nws <- find_nws(site_no = va_gages$site_no, type = "moderate")

Run the code above in your browser using DataLab