find_season {psycho}R Documentation

Find season of dates.

Description

Returns the season of an array of dates.

Usage

find_season(
  dates,
  winter = "12-21",
  spring = "3-20",
  summer = "6-21",
  fall = "9-22"
)

Arguments

dates

Array of dates.

winter

month-day of winter solstice.

spring

month-day of spring equinox.

summer

month-day of summer solstice.

fall

month-day of fall equinox.

Value

season

Author(s)

Josh O'Brien

See Also

https://stackoverflow.com/questions/9500114/find-which-season-a-particular-date-belongs-to

Examples

library(psycho)

dates <- c("2012-02-15", "2017-05-15", "2009-08-15", "1912-11-15")
find_season(dates)

[Package psycho version 0.6.1 Index]