search_names: Search database of site names

Description Usage Arguments Value Examples

View source: R/search_names.r

Description

Searches the listing of EA monitoring sites to find rows that contain the string provided. Can search by name (name), Management Catchment (MC), Operational Catchment (OC) or River Basin District (RBD). The search is done on a local copy of the waterbody listing rather than connecting to the EA site.

Usage

1
search_names(string = NULL, column = NULL)

Arguments

string

The search string to be matched. Will match whole or partial strings in the column values.

column

The column to be searched. Possible options are name, OC (Operational Catchment), MC (Management Catchment) and RBD (River Basin District)

Value

A data frame containing the details of all the sites that match the search string (full or partial matches) in the column specified.

Examples

1
2
3
4
5
# search for River Basin Districts containing "Tweed"
## Not run: search_names("Tweed", "RBD")

# search for Management Catchments containing "Kennet"
## Not run: search_names("Kennet", "MC")

robbriers/cde documentation built on May 5, 2019, 7:59 p.m.