Skip to contents

Returns one value per station per calendar day as published by the data source. Not all data sources publish daily data; those that do not will produce a warning and return no rows for the affected stations.

Usage

hc_read_daily_flows(
  station_id,
  start_date,
  end_date = Sys.Date(),
  source = NULL
)

Arguments

station_id

Character vector of station identifiers.

start_date

Start of the requested period (Date, or character coercible to Date).

end_date

End of the requested period (Date, or character coercible to Date). Defaults to today.

source

Optional single character string naming the data source to use directly. When NULL (default) the source is detected automatically from the station ID. See hc_list_sources() for available names.

Value

A tibble with columns station_id (chr), date (Date), value (dbl), parameter (chr), unit (chr), provider_name (chr), quality_code (chr), and qf_desc (chr).

Examples

if (FALSE) { # \dontrun{
try(hc_read_daily_flows("030101", start_date = "2020-01-01", end_date = "2020-01-31"))
} # }