getSeason {kehra}R Documentation

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

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


[Package kehra version 0.1 Index]