| Period-class | R Documentation |
A simple S4 class to define a month, a season or a year used for aggregating monthly values to seasonal or annual values and for making monthly plots with nice labels etc.
all.periods
periods
all.months
all.seasons
annual
An object of class list of length 17.
List ofPeriod objects
An object of class list of length 12.
An object of class list of length 4.
An object of class list of length 1.
Since these are for the most part standard (ie. people commonly need the months, the seasons (DJF, MAM, JJA, SON) and annual) these are defined in simple list that might be commonly used and can be looped through. These are:
monthswhich contains all the months.
seasonswhich contains all the seasons.
annualwhich only contains only the annual period.
all.periods, periodswhich contains all of the above.
However other periods can be defined for specific growing seasons etc.
idA unique character string to identify this particular time period. Recommended to be alphanumeric because it is used to construct file names.
nameA character string to describe the spatial extent. Used for building plot labels, not file names, so doesn't need to be alphanumeric and can so can be prettier.
abbreviationNot really sure if this is necessary, think is it covered by the "id" slot
indexThe index of the months of the year for this period. For example, Jan has index = 1, DJF has index =c (12,1,2) and annual has index = c(1,2,3,4,5,6,7,8,9,10,11,12)
padded.indexAs slot index but zero-padded strings for use in when encoding/decoding file names.
containsHolds the names of the other periods included in this period. For example for Jan just contains "Jan", but DJF it contains c("Dec","Jan,"Feb)
daysNumber of days in this time period during a normal (non-leap) year
days.leapNumber of days on this period during a leap year
colA colour (as a character string) for this particular period
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.