search_stn_name: A search function for hydrometric station name or number

Description Usage Arguments Value Examples

View source: R/utils-search.R

Description

Use this search function when you only know the partial station name or want to search.

Usage

1
2
3
search_stn_name(search_term, hydat_path = NULL)

search_stn_number(search_term, hydat_path = NULL)

Arguments

search_term

Only accepts one word.

hydat_path

The path to the hydat database or NULL to use the default location used by download_hydat. It is also possible to pass in an existing src_sqlite such that the database only needs to be opened once per user-level call.

Value

A tibble of stations that match the search_term

Examples

1
2
3
4
5
6
## Not run: 
search_stn_name("Cowichan")

search_stn_number("08HF")

## End(Not run)

tidyhydat documentation built on Sept. 15, 2021, 5:08 p.m.