getSeason: Get season a date belongs to

Description Usage Arguments Value Examples

View source: R/getSeason.R

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

1
getSeason(DATES)

Arguments

DATES

a date.

Value

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

Examples

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

kehraProject/kehra documentation built on May 20, 2019, 8:45 a.m.