check_water_office_status: A function to determine station status

Description Usage Arguments Examples

View source: R/check_water_office_status.R

Description

This function scrapes data off the ECCC water office and outputs a summary of station(s) status

Usage

1
2
check_water_office_status(station_number, print_url = FALSE,
  copy_url = FALSE)

Arguments

station_number

WSC station number

print_url

logical: Should the Water Office url be printed?

copy_url

logical: Should the Water Office url be copied to a clipboard (windows only)?

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
check_water_office_status("08MF005",print_url = TRUE)

## to get around 20 station limit for the water office
if (require("purrr")) {
stns <- tidyhydat::realtime_stations(prov_terr_state_loc = "BC")
stns_split <- split(stns$STATION_NUMBER, (seq(length(stns$STATION_NUMBER))) %/% 20)
map_dfr(stns_split, ~ check_water_office_status(.x))
}

## End(Not run)

bcgov/hydrolook documentation built on May 2, 2021, 11:23 p.m.