dates <- as.Date(c("2001-01-01", "2001-02-28", "2012-09-01", "2012-12-01"))
dtt_season(dates)
dtt_season(dates, start = c(Monsoon = 2L, `Dry Period` = 6L))
dtt_season(
dates,
start = c(First = dtt_date("2000-01-01"), Second = dtt_date("2000-06-01"))
)
Run the code above in your browser using DataLab