find_season: Find season of dates.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/miscellaneous.R

Description

Returns the season of an array of dates.

Usage

1
2
3
4
5
6
7
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

1
2
3
4
library(psycho)

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

psycho documentation built on Jan. 19, 2021, 9:07 a.m.