Learn R Programming

chillR (version 0.75)

genSeasonList: genSeasonList

Description

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

Usage

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

Value

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`.

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