awdb_options | R Documentation |
This is a helper function to make it easier to handle additional query parameters. Provides defaults for each and does type checking.
set_options(
networks = "*",
duration = "daily",
begin_date = NULL,
end_date = NULL,
period_reference = "end",
central_tendency = NULL,
return_flags = FALSE,
return_original_values = FALSE,
return_suspect_values = FALSE,
begin_publication_date = NULL,
end_publication_date = NULL,
exceedence_probabilities = NULL,
forecast_periods = NULL,
station_names = NULL,
dco_codes = NULL,
county_names = NULL,
hucs = NULL,
return_forecast_metadata = FALSE,
return_reservoir_metadata = FALSE,
return_element_metadata = FALSE,
active_only = TRUE,
request_size = 10L
)
## S3 method for class 'awdb_options'
print(x, ...)
networks |
character vector, abbreviations or codes for station networks
of interest (e.g., "USGS" refers to all USGS soil monitoring stations).
Default is |
duration |
character scalar, the temporal resolution of the element
measurements. Available values include |
begin_date |
character scalar, start date for time period of interest.
Date must be in format |
end_date |
character scalar, end date for time period of interest. Date
must be in format |
period_reference |
character scalar, reporting convention to use when
returning instantaneous data. Default is |
central_tendency |
character scalar, the central tendency to return for
each element value. Available options include |
return_flags |
boolean scalar, whether to return flags with each element
value. Default is |
return_original_values |
boolean scalar, whether to return original
element values. Default is |
return_suspect_values |
boolean scalar, whether to return suspect element
values. Default is |
begin_publication_date |
character scalar, the beginning of the
publication period for which to retrieve data. Date must be in format
|
end_publication_date |
character scalar, the end of the publication
period for which to retrieve data. Date must be in format |
exceedence_probabilities |
integer vector, the probability that streamflow will exceed a specified level. |
forecast_periods |
character vector, the time period over which to make streamflow forecasts. |
station_names |
character vector, used to subset stations by their
names. Default is |
dco_codes |
character vector, used to subset stations to those that fall
in specified DCOs. Default is |
county_names |
character vector, used to subset stations to those that
fall in specified counties. Default is |
hucs |
integer vector, used to subset stations to those that fall in
specified hydrologic units. Default is |
return_forecast_metadata |
boolean scalar, whether to return forecast
metadata with station locations. Will be included as a list column. Default
is |
return_reservoir_metadata |
boolean scalar, whether to return reservoir
metadata with station locations. Will be included as a list column. Default
is |
return_element_metadata |
boolean scalar, whether to return element
metadata with station locations. Will be included as a list column. Default
is |
active_only |
boolean scalar, whether to include only active stations.
Default is |
request_size |
integer scalar, number of individual stations to include
in each query. This helps to meet rate limits imposed by the API. If you are
getting a request error, you might try lowering this number. Default is
|
x |
an |
... |
ignored |
an awdb_options
list
set_options()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.