Learn R Programming

kehra (version 0.1)

getSeason: Get season a date belongs to

Description

Get season a date belongs to. This function was taken from the following stackoverflow post: http://stackoverflow.com/questions/9500114/find-which-season-a-particular-date-belongs-to.

Usage

getSeason(DATES)

Arguments

DATES
a date.

Value

returns the name of the season (e.g. "Fall")

Examples

Run this code
# my.dates <- as.Date("2011-12-01", format = "%Y-%m-%d") + 0:60
# getSeason(my.dates)

Run the code above in your browser using DataLab