Small helper function that provided a vector with dates, returns the names of corresponding seasons, according to the Australian definition of seasons It can return either "temperate" (4 seasons) or "tropical" (dry/wet) seasons.
Arguments
- dates
vectors with dates. It supports Dates, POSIxt or characters.
- type
either "temperate" (default) or "tropical"
Examples
if (FALSE) {
sample_dates <- c("2022-01-01","2018-10-04","2016-07-20")
# temperate seasons
aus_seasons(sample_dates,"temperate")
# tropical seasons
aus_seasons(sample_dates,"tropical")
}