terrestrial.season | R Documentation |
Returns the season on specified dates.
terrestrial.season( x, cutoffs = c(80, 172, 263, 354), southern.hemisphere = FALSE )
x |
A vector of |
cutoffs |
A vector of numbers corresponding to days of the year when season labels change. |
southern.hemisphere |
The season labels follow a northern hemisphere order unless this option is set to TRUE. |
The definitions for non-leap years are as follows (dates are inclusive):
21 December through 21 March
22 March through 21 June
22 June through 20 September
21 September through 20 December
In leap years spring comes a day early! Thanks to Mehis Rohtla for finding an error in the 0.1-04 version code.
terrestrial.seasons
terrestrial.season(as.Date("2017-03-21")) terrestrial.season(as.Date("2017-03-22")) terrestrial.season(as.Date("2017-12-20"), southern.hemisphere = TRUE) terrestrial.season(as.Date("2017-12-21"), southern.hemisphere = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.