is_lake_gage: Detect if a USGS gage is upstream of a lake

View source: R/geo.R

is_lake_gageR Documentation

Detect if a USGS gage is upstream of a lake

Description

Detect if a USGS gage is upstream of a lake

Usage

is_lake_gage(site_no, distance_threshold = 20)

Arguments

site_no

character to preserve leading zeros

distance_threshold

numeric in units of km

Examples

## Not run: 
site_no <- "040871473"
is_lake_gage(site_no)$is_lake_gage # FALSE
site_no <- "05427718"
is_lake_gage(site_no)$is_lake_gage # TRUE
site_no <- "03208950"
is_lake_gage(site_no)
site_no <- "07130500"
is_lake_gage(site_no)

## End(Not run)

jsta/rjsta documentation built on June 7, 2022, 8:39 p.m.