A data frame with output at either the gage or county level,
depending on the value of "output". If output = "gage" a data frame with
the following columns is returned:
Name |
Type |
Description |
site_no |
character |
USGS gage ID |
county_cd |
character |
FIPS code of gage county location |
lat |
numeric |
Gage latitude |
long |
numeric |
Gage longitude |
avg_peak |
numeric |
Mean flood ratio for date range
(discharge/flood threshold) |
flood_dur |
numeric |
Number of days in date range
discharge above flood threshold |
max_peak |
numeric |
Maximum value of flood ratio for date
range (discharge/flood threshold) |
num_missing |
numeric |
Number of days in given date
range with no discharge data at that gage |
Q2 |
numeric |
Median annual discharge (cubic feet per second) |
DA |
numeric |
Drainage area of the gage (square miles) |
size |
numeric |
Relative river size, logarithm of either Q2 or DA
depending on user specified weight |
state |
character |
State name |
county |
character |
County name |
If output = "county" a data frame with the following columns is returned:
Name |
Type |
Description |
county |
character |
County name |
state |
character |
State name |
num_gage |
numeric |
Number of analyzed gages in county |
avg_peak |
numeric |
Average flood ratio among county gages |
max_peak |
numeric |
Maximum observed flood ratio |
minor |
numeric |
Percentage of gages at or above "minor" flood
class (flood ratio > 1) |
moderate |
numeric |
Percentage of gages at or above "moderate"
flood class (flood ratio > 1.5) |
major |
numeric |
Percentage of gages at or above "major" flood
class (flood ratio > 2) |
extreme |
numeric |
Percentage of gages at or above "extreme"
flood class (flood ratio > 5) |
max_dur |
numeric |
Maximum flood duration in county |
If threshold = "NWS", the columns "minor", "moderate", "major", and "extreme"
are replaced with two columns: "no_flood" and "yes_flood" which show the
percentage of gages in the county with or without flooding.
If output = "both" a list containing both data frames is returned.
In both cases, if data in counties were requested but not avaialable,
these counties are included as additional rows with data values of NA.