# NOT RUN {
# Run if HYDAT database has been downloaded (using tidyhydat::download_hydat())
if (file.exists(tidyhydat::hy_downloaded_db())) {
# Calculate annual total volumetric flow statistics
calc_annual_cumulative_stats(station_number = "08NM116")
# Calculate annual total yield statistics with default HYDAT basin area
calc_annual_cumulative_stats(station_number = "08NM116",
use_yield = TRUE)
# Calculate annual total yield statistics with a custom basin area
calc_annual_cumulative_stats(station_number = "08NM116",
use_yield = TRUE,
basin_area = 800)
}
# }
Run the code above in your browser using DataLab