locate_ts: Find a timeseries item on ScienceBase

locate_tsR Documentation

Find a timeseries item on ScienceBase

Description

Find a timeseries item on ScienceBase

Usage

locate_ts(var_src = "doobs_nwis", site_name = "nwis_02322688", format
  = c("id", "url"), by = c("tag", "dir", "either"), limit = 5000, browser =
  (format == "url"))

Arguments

var_src

the variable name, e.g., "doobs_nwis", for which you want the timeseries

site_name

the site ID, e.g. "nwis_02322688", whose folder you want to look in

format

character indicating whether the folder should be returned as an ID or as a full URL

by

character indicating how to search for the item: using tags ("tag", the default and recommended option), by scanning the parent directory for the desired title ("dir"), or both in combination ("either")?

browser

logical. Should the URL be opened in a browser?

limit

integer. the maximum number of items to return

Examples

## Not run: 
locate_ts(c("doobs_nwis","baro_nldas"), "nwis_02322688")
locate_ts("doobs_nwis", c("nwis_01203000","nwis_01208990","nwis_01304057"))
locate_ts("doamp_calcDAmp", "nwis_02322688", format="url")

## End(Not run)

USGS-R/powstreams documentation built on June 3, 2023, 8:58 a.m.