genSeasonList function

genSeasonList

genSeasonList

Generates a list with data.frame elements for each season.

genSeasonList(temps, mrange = c(8, 6), years)

Arguments

  • temps: data.frame. Must have columns Temp containing the temperatures, JDay the JDays, Month the months and Year the years. This kind of data frame is for instance generated by stack_hourly_temps , but can also be generated by hand or using a different routine.
  • mrange: numeric. vector of length two for the range of months the season should span. E.g. mrange=c(8,6) would span a season from August to next June. There must not be any overlap in months, i.e. mrange[1] must be larger mrange[2].
  • years: numeric. vector of years to be considered

Returns

Returns a list of data frames. Each element of the list corresponds to one season. The data.frame for each year has named columns Temp, JDay and Year.

  • Maintainer: Eike Luedeling
  • License: GPL-3
  • Last published: 2024-11-14

Useful links