# Run if HYDAT database has been downloaded (using tidyhydat::download_hydat())
if (file.exists(tidyhydat::hy_downloaded_db())) {
# Add a column with four annual seasons starting in January
add_seasons(station_number = "08NM116",
seasons_length = 4)
# Add a column with two annual seasons (of 6 months length) starting in October
add_seasons(station_number = "08NM116",
water_year_start = 10,
seasons_length = 6)
}
Run the code above in your browser using DataLab