search_sites: Search the sites

View source: R/search_sites.R

search_sitesR Documentation

Search the sites

Description

Search the sites

Usage

search_sites(everything = NA, site_name = NA, long_name = NA,
  database = NA, sitenum = NA, site_names = list_sites(),
  match_case = FALSE, fixed = TRUE)

Arguments

everything

text to search for within paste(site_name, long_name)

site_name

text to search for within the [short] site_name

long_name

text to search for within the long_name

database

text to search for within the database portion of the site_name

sitenum

text to search for within the sitenum portion of the site_name

site_names

vector of site_names to search (with long_name added). The default is to pull this list from ScienceBase

match_case

logical. should the case be matched exactly?

fixed

logical. As in grepl, TRUE to require an exact match and FALSE to use regular expressions

Examples

search_sites('indy')
search_sites('connecticut river')
search_sites('NE$|Nebr.$', match_case=TRUE, fixed=FALSE)

USGS-R/mda.streams documentation built on June 3, 2023, 8:43 a.m.