Description Usage Arguments Examples
View source: R/check_water_office_status.R
This function scrapes data off the ECCC water office and outputs a summary of station(s) status
1 2  | check_water_office_status(station_number, print_url = FALSE,
  copy_url = FALSE)
 | 
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)?  | 
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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.