Learn R Programming

psycho (version 0.6.1)

find_season: 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

See Also

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

Examples

Run this code
# NOT RUN {
library(psycho)

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

Run the code above in your browser using DataLab