Format date-time as seasons in R?
问题 In R, it's possible to format POSIXlt date-time objects as a month: format(Sys.time(), format='%Y-%m') Is there a way to do the same thing with seasons, or 3-month groups (DJF, MAM, JJA, SON)? These divisions are really common in climatological and ecological science, and it would be great to have a neat way to format them quickly like with months. Obviously DJF falls over 2 years, but for the purposes or this question, that doesn't really matter - just consistently shove them into either