Skip to contents

A simple function to return a character (-vector) of the season from a Date (-vector). Months:

spring

3-5

summer

6-8

fall

9-11

winter

12-2

Usage

season(d)

Arguments

d

(Date) Any date object

Value

m (character)

Examples

season(as.Date(c("1955-01-15","1985-06-15","2015-10-15")))
#> [1] "winter" "summer" "fall"