Pass station IDs from different providers in one call. The router matches each ID to its adapter automatically.
Because every adapter returns the same column set, data can be stacked directly and analysed together.
cehq_data <- hc_read_daily_flows(
station_id = c("023301", "030101"),
start_date = "2015-01-01",
end_date = "2020-12-31",
source = "cehq"
)
hq_data <- hc_read_daily_flows(
station_id = "3-230",
start_date = Sys.Date() - 7,
end_date = Sys.Date(),
source = "hydroquebec"
)
# Stack: works because the schema is identical
all_flows <- bind_rows(cehq_data, hq_data)
all_flows |>
count(provider_name)