# NOT RUN {
# Run if HYDAT database has been downloaded (using tidyhydat::download_hydat())
if (file.exists(tidyhydat::hy_downloaded_db())) {
# Calculate the 20th percentile flow value from a flow record
calc_longterm_percentile(station_number = "08NM116",
percentile = 20)
# Calculate the 90th percentile flow value with custom years
calc_longterm_percentile(station_number = "08NM116",
start_year = 1980,
end_year = 2010,
percentile = 90)
}
# }
Run the code above in your browser using DataLab